Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009326/0.0009326, allocations: 172.3 kB / 25.33 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8687/0.8687, allocations: 158.6 MB / 187.2 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 251.1 MB, free: 7.461 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.593e-05/1.778e-05, allocations: 2.312 kB / 251.1 MB, free: 7.457 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02245/0.02247, allocations: 28.62 MB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.03764, allocations: 8.452 MB / 288.2 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003646/0.04129, allocations: 218.9 kB / 288.4 MB, free: 2.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0103/0.05159, allocations: 8.781 MB / 297.2 MB, free: 9.199 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007238/0.05883, allocations: 3.15 MB / 300.3 MB, free: 6.031 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002958/0.06179, allocations: 1.936 MB / 302.2 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00835/0.07013, allocations: 10.92 MB / 313.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01373/0.08386, allocations: 14.08 MB / 327.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007858/0.09172, allocations: 8.514 MB / 335.8 MB, free: 2.371 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006205/0.09792, allocations: 6.164 MB / 341.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002036/0.09996, allocations: 1.578 MB / 343.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002601/0.1026, allocations: 1.94 MB / 345.4 MB, free: 8.672 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001779/0.1043, allocations: 3.304 MB / 348.7 MB, free: 5.359 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004183/0.1085, allocations: 4.152 MB / 352.9 MB, free: 1.199 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1792/0.2877, allocations: 10.35 MB / 363.3 MB, free: 44.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2877, allocations: 0.5 kB / 363.3 MB, free: 44.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2877, allocations: 0 / 363.3 MB, free: 44.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000353/0.2881, allocations: 0.625 kB / 363.3 MB, free: 44.43 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.01758/0.3057, allocations: 13.4 MB / 376.6 MB, free: 40.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3057, allocations: 10.12 kB / 376.7 MB, free: 40.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02341/0.3291, allocations: 10.52 MB / 387.2 MB, free: 39.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006846/0.336, allocations: 5.494 MB / 392.7 MB, free: 36.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002647/0.3362, allocations: 0.7405 MB / 393.4 MB, free: 36.49 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009915/0.3372, allocations: 0.9812 MB / 394.4 MB, free: 36.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.3501, allocations: 8.873 MB / 403.3 MB, free: 29.01 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001425/0.3502, allocations: 7.953 kB / 403.3 MB, free: 29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006464/0.3509, allocations: 415.7 kB / 403.7 MB, free: 28.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003012/0.3512, allocations: 0.6106 MB / 404.3 MB, free: 28 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009255/0.3604, allocations: 5.251 MB / 409.5 MB, free: 22.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04158/0.402, allocations: 40.74 MB / 450.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.4132, allocations: 11.47 MB / 461.7 MB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.4153, allocations: 1.556 MB / 463.3 MB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/0.4277, allocations: 5.93 MB / 469.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.4278, allocations: 62.61 kB / 469.3 MB, free: 13.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=270): time 4.208e-06/0.4278, allocations: 0 / 469.3 MB, free: 13.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=278): time 0.01569/0.4435, allocations: 7.987 MB / 477.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.4435, allocations: 81.59 kB / 477.4 MB, free: 5.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004942/0.4485, allocations: 3.92 MB / 481.3 MB, free: 1.738 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002137/0.4487, allocations: 73.7 kB / 481.4 MB, free: 1.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002495/0.4512, allocations: 5.052 MB / 486.4 MB, free: 12.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007803/0.4519, allocations: 1.05 MB / 487.5 MB, free: 11.56 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/0.4533, allocations: 1.374 MB / 488.8 MB, free: 10.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.4534, allocations: 476.8 kB / 489.3 MB, free: 9.699 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/0.4548, allocations: 0.804 MB / 490.1 MB, free: 8.895 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003793/0.4586, allocations: 5.549 MB / 495.6 MB, free: 1.285 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005851/0.4645, allocations: 7.021 MB / 0.4909 GB, free: 8.578 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.933e-05/0.4645, allocations: 32 kB / 0.4909 GB, free: 8.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.008113/0.4727, allocations: 5.631 MB / 0.4964 GB, free: 3.586 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.4727, allocations: 51.75 kB / 0.4965 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.4728, allocations: 112 kB / 0.4966 GB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001834/0.4747, allocations: 0.8051 MB / 0.4974 GB, free: 2.625 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/0.4772, allocations: 1.405 MB / 0.4987 GB, free: 1.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1589/0.6361, allocations: 4.998 MB / 0.5036 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/0.6398, allocations: 354.5 kB / 0.5039 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005783/0.6403, allocations: 350.3 kB / 0.5043 GB, free: 110.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002307/0.6426, allocations: 0.6016 MB / 0.5049 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007253/0.6434, allocations: 0.4923 MB / 0.5054 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.6475, allocations: 2.932 MB / 0.5082 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.6475, allocations: 31.03 kB / 0.5082 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.6475, allocations: 7.344 kB / 0.5083 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.6475, allocations: 15.98 kB / 0.5083 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.66, allocations: 9.256 MB / 0.5173 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.66, allocations: 4.594 kB / 0.5173 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.6611, allocations: 0.5204 MB / 0.5178 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.6626, allocations: 0.6601 MB / 0.5185 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/0.6627, allocations: 68.81 kB / 0.5185 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004009/0.6667, allocations: 4.52 MB / 0.5229 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.6667, allocations: 11.17 kB / 0.523 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004865/0.6716, allocations: 3.594 MB / 0.5265 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.6727, allocations: 0.6803 MB / 0.5271 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002954/0.673, allocations: 60.25 kB / 0.5272 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008694/0.6739, allocations: 165.9 kB / 0.5273 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.6742, allocations: 213.8 kB / 0.5275 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.6743, allocations: 88.64 kB / 0.5276 GB, free: 106.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002062/0.6764, allocations: 1.727 MB / 0.5293 GB, free: 106.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6764, allocations: 0 / 0.5293 GB, free: 106.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004464/0.6808, allocations: 1.547 MB / 0.5308 GB, free: 106.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004165/0.6812, allocations: 221.7 kB / 0.531 GB, free: 106.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004971/0.6862, allocations: 3.793 MB / 0.5347 GB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.6862, allocations: 3.812 kB / 0.5347 GB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.6879, allocations: 1.553 MB / 0.5363 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/0.6903, allocations: 0.918 MB / 0.5372 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/0.7087, allocations: 14.05 MB / 0.5509 GB, free: 92.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/0.7107, allocations: 2.569 MB / 0.5534 GB, free: 90.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003666/0.7144, allocations: 1.675 MB / 0.555 GB, free: 89.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007291/0.7151, allocations: 329 kB / 0.5553 GB, free: 89.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.754e-06/0.7151, allocations: 0 / 0.5553 GB, free: 89.55 MB / 410.7 MB Notification: Performance of Templates: time 0.07171/0.7869, allocations: 50.43 MB / 0.6046 GB, free: 39.96 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.65219238307327]