Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009241/0.000924, allocations: 88.09 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.562e-05, allocations: 8 kB / 350.6 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 51.49 MB / 402.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4/0.5059, allocations: 137.7 MB / 0.5272 GB, free: 476 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.5063, allocations: 103.1 kB / 0.5272 GB, free: 420 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.166/1.672, allocations: 338.3 MB / 0.8576 GB, free: 29.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.672, allocations: 0 / 0.8576 GB, free: 29.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008161/1.673, allocations: 206 kB / 0.8578 GB, free: 29.47 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03387/1.707, allocations: 8.456 MB / 0.8661 GB, free: 25.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.184e-05/1.707, allocations: 9.188 kB / 0.8661 GB, free: 25.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02249/1.729, allocations: 3.909 MB / 0.8699 GB, free: 23.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01867/1.748, allocations: 7.333 MB / 0.8771 GB, free: 17.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007777/1.749, allocations: 0.6757 MB / 0.8777 GB, free: 17.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003978/1.753, allocations: 0.891 MB / 0.8786 GB, free: 16.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03613/1.789, allocations: 14.71 MB / 0.893 GB, free: 1.281 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004508/1.79, allocations: 15.89 kB / 0.893 GB, free: 1.266 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003388/1.793, allocations: 388 kB / 0.8934 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007658/1.794, allocations: 0.6908 MB / 0.894 GB, free: 208 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03113/1.825, allocations: 12.52 MB / 0.9063 GB, free: 3.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3773/2.202, allocations: 48.34 MB / 0.9535 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02264/2.225, allocations: 28.45 MB / 0.9813 GB, free: 25.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006108/2.231, allocations: 3 MB / 0.9842 GB, free: 25.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006276/2.232, allocations: 319.4 kB / 0.9845 GB, free: 25.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.107e-05/2.232, allocations: 72.66 kB / 0.9846 GB, free: 25.24 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.553e-06/2.232, allocations: 2.25 kB / 0.9846 GB, free: 25.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.02419/2.256, allocations: 11.31 MB / 0.9956 GB, free: 23.57 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/2.256, allocations: 95.56 kB / 0.9957 GB, free: 23.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006011/2.262, allocations: 3.122 MB / 0.9987 GB, free: 23.22 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008654/2.263, allocations: 92.58 kB / 0.9988 GB, free: 23.19 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003223/2.266, allocations: 4.022 MB / 1.003 GB, free: 20.38 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001864/2.268, allocations: 1.348 MB / 1.004 GB, free: 19.34 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/2.269, allocations: 123.5 kB / 1.004 GB, free: 19.25 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004416/2.269, allocations: 0.5455 MB / 1.005 GB, free: 18.84 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003656/2.273, allocations: 2.5 MB / 1.007 GB, free: 17.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00467/2.277, allocations: 4.965 MB / 1.012 GB, free: 13.71 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005293/2.283, allocations: 3.726 MB / 1.016 GB, free: 12.28 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.145e-05/2.283, allocations: 27.73 kB / 1.016 GB, free: 12.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0152/2.298, allocations: 8.475 MB / 1.024 GB, free: 9.527 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/2.298, allocations: 43.53 kB / 1.024 GB, free: 9.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001648/2.298, allocations: 90.12 kB / 1.024 GB, free: 9.523 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002417/2.301, allocations: 0.8895 MB / 1.025 GB, free: 9.348 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00561/2.306, allocations: 1.351 MB / 1.026 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/2.317, allocations: 7.522 MB / 1.034 GB, free: 5.242 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006299/2.323, allocations: 343.9 kB / 1.034 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/2.325, allocations: 307.5 kB / 1.034 GB, free: 5.066 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002305/2.327, allocations: 0.4911 MB / 1.035 GB, free: 4.738 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/2.329, allocations: 409.7 kB / 1.035 GB, free: 4.531 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/2.341, allocations: 5.856 MB / 1.041 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.213e-05/2.341, allocations: 39.91 kB / 1.041 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.208e-05/2.341, allocations: 13.5 kB / 1.041 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.251e-05/2.341, allocations: 20.06 kB / 1.041 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03723/2.379, allocations: 15.34 MB / 1.056 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/2.379, allocations: 3.75 kB / 1.056 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003222/2.382, allocations: 0.6914 MB / 1.057 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002432/2.384, allocations: 0.6849 MB / 1.057 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009018/2.385, allocations: 85.02 kB / 1.057 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009384/2.395, allocations: 6.148 MB / 1.063 GB, free: 8.141 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/2.395, allocations: 7.562 kB / 1.063 GB, free: 8.141 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/2.412, allocations: 8.93 MB / 1.072 GB, free: 416 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0033/2.415, allocations: 0.8722 MB / 1.073 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/2.417, allocations: 78.58 kB / 1.073 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003503/2.42, allocations: 190.4 kB / 1.073 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008484/2.421, allocations: 266.4 kB / 1.073 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005025/2.422, allocations: 111.5 kB / 1.074 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005961/2.428, allocations: 2.33 MB / 1.076 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.8e-07/2.428, allocations: 0 / 1.076 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01015/2.438, allocations: 1.607 MB / 1.077 GB, free: 11.48 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001885/2.44, allocations: 0.7089 MB / 1.078 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01343/2.453, allocations: 6.37 MB / 1.084 GB, free: 5.105 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/2.453, allocations: 3.938 kB / 1.084 GB, free: 5.102 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006275/2.459, allocations: 2.85 MB / 1.087 GB, free: 2.508 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005857/2.465, allocations: 0.8502 MB / 1.088 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3532/2.819, allocations: 13.91 MB / 1.101 GB, free: 85.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007256/2.826, allocations: 6.119 MB / 1.107 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005527/2.831, allocations: 1.859 MB / 1.109 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/2.833, allocations: 350.2 kB / 1.11 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of SimCode: time 9.22e-07/2.833, allocations: 0 / 1.11 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of Templates: time 0.1221/2.955, allocations: 63.18 MB / 1.171 GB, free: 81.59 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches