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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001454/0.001454, allocations: 84.25 kB / 22.22 MB, free: 2.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 169.5 kB / 25.61 MB, free: 8.57 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9244/0.9244, allocations: 177 MB / 205.9 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 274.2 MB, free: 4.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.703e-05, allocations: 2.312 kB / 274.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01953/0.01955, allocations: 26.82 MB / 301 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.03412, allocations: 8.353 MB / 309.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004803/0.03892, allocations: 254.7 kB / 309.6 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01055/0.04947, allocations: 8.45 MB / 318 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007273/0.05675, allocations: 2.901 MB / 320.9 MB, free: 5.258 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003555/0.0603, allocations: 1.863 MB / 322.8 MB, free: 3.395 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008701/0.069, allocations: 10.44 MB / 333.2 MB, free: 8.914 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1294/0.1984, allocations: 13.9 MB / 347.1 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0109/0.2093, allocations: 8.245 MB / 355.4 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007512/0.2168, allocations: 5.912 MB / 361.3 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003551/0.2204, allocations: 1.533 MB / 362.8 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005622/0.226, allocations: 1.921 MB / 364.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004731/0.2307, allocations: 3.088 MB / 367.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007613/0.2383, allocations: 3.954 MB / 371.8 MB, free: 19.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.2492, allocations: 9.898 MB / 381.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.098e-06/0.2493, allocations: 4.219 kB / 381.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2493, allocations: 0 / 381.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004089/0.2497, allocations: 0 / 381.7 MB, free: 13.43 MB / 314.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.01813/0.2678, allocations: 12.27 MB / 394 MB, free: 2.254 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2678, allocations: 8.031 kB / 394 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/0.2835, allocations: 5.417 MB / 399.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008242/0.2917, allocations: 5.648 MB / 405 MB, free: 7.461 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004682/0.2922, allocations: 0.706 MB / 405.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001998/0.2942, allocations: 0.9221 MB / 406.7 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01322/0.3074, allocations: 7.497 MB / 414.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001871/0.3076, allocations: 18.8 kB / 414.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007327/0.3083, allocations: 396.2 kB / 414.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003564/0.3087, allocations: 0.5155 MB / 415.1 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00639/0.3151, allocations: 3.453 MB / 418.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04027/0.3553, allocations: 38.15 MB / 456.7 MB, free: 5.086 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006193/0.3615, allocations: 6.02 MB / 462.7 MB, free: 408 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.3629, allocations: 1.201 MB / 463.9 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002157/0.3631, allocations: 110.9 kB / 464 MB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.3632, allocations: 80.41 kB / 464.1 MB, free: 15.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=384): time 5.5e-06/0.3632, allocations: 0 / 464.1 MB, free: 15.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=392): time 0.01282/0.376, allocations: 7.187 MB / 471.3 MB, free: 7.863 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.376, allocations: 94.48 kB / 471.4 MB, free: 7.758 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003225/0.3793, allocations: 3.354 MB / 474.7 MB, free: 4.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001829/0.3795, allocations: 93.7 kB / 474.8 MB, free: 4.789 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002391/0.3818, allocations: 4.433 MB / 479.2 MB, free: 492 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.3829, allocations: 1.456 MB / 480.7 MB, free: 15.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.3841, allocations: 1.328 MB / 482 MB, free: 13.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003904/0.3845, allocations: 484.5 kB / 482.5 MB, free: 13.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008808/0.3854, allocations: 0.6477 MB / 483.2 MB, free: 12.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002605/0.388, allocations: 4.425 MB / 487.6 MB, free: 6.898 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004896/0.3929, allocations: 5.717 MB / 493.3 MB, free: 56 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.99e-05/0.393, allocations: 20 kB / 493.3 MB, free: 36 kB / 410.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.2376/0.6306, allocations: 4.814 MB / 498.1 MB, free: 91.79 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.6307, allocations: 42.92 kB / 498.2 MB, free: 91.79 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.6308, allocations: 87.84 kB / 498.3 MB, free: 91.79 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/0.6325, allocations: 0.7603 MB / 499 MB, free: 91.77 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/0.6353, allocations: 1.292 MB / 0.4886 GB, free: 91.77 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004342/0.6397, allocations: 4.835 MB / 0.4933 GB, free: 89.73 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/0.6422, allocations: 235.6 kB / 0.4935 GB, free: 89.73 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002696/0.6425, allocations: 261.5 kB / 0.4938 GB, free: 89.73 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00171/0.6442, allocations: 0.5672 MB / 0.4943 GB, free: 89.56 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005848/0.6448, allocations: 0.5226 MB / 0.4948 GB, free: 89.49 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.6482, allocations: 3.035 MB / 0.4978 GB, free: 89.23 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.6482, allocations: 40.09 kB / 0.4978 GB, free: 89.23 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.6483, allocations: 14.47 kB / 0.4979 GB, free: 89.23 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/0.6483, allocations: 19.28 kB / 0.4979 GB, free: 89.23 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.6586, allocations: 8.35 MB / 0.506 GB, free: 88.33 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.6587, allocations: 9.25 kB / 0.506 GB, free: 88.33 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.66, allocations: 0.6167 MB / 0.5066 GB, free: 88.33 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.6612, allocations: 0.6326 MB / 0.5073 GB, free: 88.29 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.6614, allocations: 91.73 kB / 0.5073 GB, free: 88.29 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003399/0.6648, allocations: 4.315 MB / 0.5116 GB, free: 86.21 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.6648, allocations: 9.125 kB / 0.5116 GB, free: 86.21 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004361/0.6691, allocations: 3.848 MB / 0.5153 GB, free: 85.28 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.6703, allocations: 0.6985 MB / 0.516 GB, free: 85.05 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003333/0.6706, allocations: 72.16 kB / 0.5161 GB, free: 85.05 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008227/0.6714, allocations: 97.77 kB / 0.5162 GB, free: 85.05 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000374/0.6718, allocations: 290.2 kB / 0.5164 GB, free: 85.04 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.672, allocations: 91.44 kB / 0.5165 GB, free: 85.04 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001243/0.6732, allocations: 1.426 MB / 0.5179 GB, free: 84.85 MB / 410.8 MB Notification: Performance of sort global known variables: time 6.1e-08/0.6732, allocations: 0 / 0.5179 GB, free: 84.85 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.003464/0.6767, allocations: 1.542 MB / 0.5194 GB, free: 84.85 MB / 410.8 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000374/0.677, allocations: 277 kB / 0.5197 GB, free: 84.76 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.003798/0.6808, allocations: 3.52 MB / 0.5231 GB, free: 84.36 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/0.6808, allocations: 2.969 kB / 0.5231 GB, free: 84.36 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.6825, allocations: 1.719 MB / 0.5248 GB, free: 83.97 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.6848, allocations: 0.9167 MB / 0.5257 GB, free: 83.5 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.7004, allocations: 13.28 MB / 0.5387 GB, free: 72.68 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00159/0.702, allocations: 2.477 MB / 0.5411 GB, free: 71.45 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00183/0.7038, allocations: 0.681 MB / 0.5418 GB, free: 70.92 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/0.7052, allocations: 1.002 MB / 0.5427 GB, free: 70.08 MB / 410.8 MB Notification: Performance of SimCode: time 1.192e-06/0.7052, allocations: 0 / 0.5427 GB, free: 70.08 MB / 410.8 MB Notification: Performance of Templates: time 0.07467/0.7799, allocations: 61.05 MB / 0.6024 GB, free: 11.22 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] 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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.869094674941152]