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.001039/0.001039, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.001037/0.001037, allocations: 159.4 kB / 25.45 MB, free: 9.352 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.9438/0.9438, allocations: 158.6 MB / 187.2 MB, free: 3.051 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.773e-06/1.773e-06, allocations: 0 / 299.8 MB, free: 6.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.369e-05/2.547e-05, allocations: 2.281 kB / 299.8 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02342/0.02344, allocations: 25.1 MB / 324.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01948/0.04292, allocations: 8.253 MB / 333.1 MB, free: 5.367 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005384/0.0483, allocations: 218.9 kB / 333.3 MB, free: 5.152 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0098/0.0581, allocations: 8.095 MB / 341.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008221/0.06632, allocations: 3.127 MB / 344.5 MB, free: 9.871 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003595/0.06992, allocations: 1.905 MB / 346.5 MB, free: 7.961 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1833/0.2532, allocations: 10.91 MB / 357.4 MB, free: 16.11 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01583/0.2691, allocations: 14.06 MB / 371.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009677/0.2787, allocations: 8.448 MB / 379.9 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005837/0.2846, allocations: 5.576 MB / 385.4 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001533/0.2861, allocations: 1.578 MB / 387 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002297/0.2884, allocations: 1.954 MB / 389 MB, free: 9 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.2897, allocations: 3.247 MB / 392.2 MB, free: 6.945 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003035/0.2928, allocations: 4.1 MB / 396.3 MB, free: 3.93 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.3067, allocations: 21.48 MB / 417.8 MB, free: 292 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3067, allocations: 0 / 417.8 MB, free: 292 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.3067, allocations: 0.7812 kB / 417.8 MB, free: 292 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003835/0.3071, allocations: 0 / 417.8 MB, free: 292 kB / 346.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.01943/0.3265, allocations: 12.5 MB / 430.3 MB, free: 3.824 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3266, allocations: 16.03 kB / 430.3 MB, free: 3.809 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02208/0.3486, allocations: 8.651 MB / 439 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.3588, allocations: 5.969 MB / 444.9 MB, free: 5.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004336/0.3592, allocations: 0.7398 MB / 445.7 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/0.3612, allocations: 0.9819 MB / 446.7 MB, free: 3.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02302/0.3843, allocations: 16.71 MB / 463.4 MB, free: 3.012 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001502/0.3844, allocations: 20.88 kB / 463.4 MB, free: 2.992 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007149/0.3851, allocations: 417.8 kB / 463.8 MB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003726/0.3855, allocations: 0.5989 MB / 464.4 MB, free: 1.996 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01941/0.4049, allocations: 15.89 MB / 480.3 MB, free: 2.098 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04924/0.4541, allocations: 44.39 MB / 0.5124 GB, free: 5.582 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2736/0.7278, allocations: 12.1 MB / 0.5242 GB, free: 150.8 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004024/0.7318, allocations: 3.155 MB / 0.5273 GB, free: 150.4 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/0.7421, allocations: 8.361 MB / 0.5354 GB, free: 147 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.7421, allocations: 68.19 kB / 0.5355 GB, free: 147 MB / 458.8 MB Notification: Performance of pre-optimization done (n=270): time 3.948e-06/0.7421, allocations: 0 / 0.5355 GB, free: 147 MB / 458.8 MB Notification: Performance of matching and sorting (n=278): time 0.01394/0.756, allocations: 12.81 MB / 0.548 GB, free: 142 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.7561, allocations: 81.22 kB / 0.5481 GB, free: 142 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/0.7594, allocations: 4.065 MB / 0.552 GB, free: 140.5 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.7595, allocations: 73.55 kB / 0.5521 GB, free: 140.4 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.7606, allocations: 4.784 MB / 0.5568 GB, free: 137.1 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003508/0.761, allocations: 1.024 MB / 0.5578 GB, free: 136.4 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009484/0.7619, allocations: 1.227 MB / 0.559 GB, free: 135.7 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 2.973e-05/0.7619, allocations: 308.7 kB / 0.5593 GB, free: 135.4 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.7638, allocations: 2.447 MB / 0.5617 GB, free: 134.5 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002702/0.7665, allocations: 5.624 MB / 0.5672 GB, free: 128.2 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005296/0.7718, allocations: 8.68 MB / 0.5756 GB, free: 118.6 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.749e-05/0.7718, allocations: 28 kB / 0.5757 GB, free: 118.6 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.007363/0.7792, allocations: 8.727 MB / 0.5842 GB, free: 110.6 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.7793, allocations: 52 kB / 0.5842 GB, free: 110.6 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.329e-05/0.7793, allocations: 108.9 kB / 0.5843 GB, free: 110.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.7804, allocations: 0.8453 MB / 0.5852 GB, free: 109.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/0.7825, allocations: 1.404 MB / 0.5865 GB, free: 108.2 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005299/0.7878, allocations: 7.246 MB / 0.5936 GB, free: 100.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002361/0.7901, allocations: 355.4 kB / 0.594 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002711/0.7904, allocations: 348 kB / 0.5943 GB, free: 100.2 MB / 458.8 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.00396/0.7944, allocations: 3.677 MB / 0.5979 GB, free: 96.48 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004501/0.7948, allocations: 405.4 kB / 0.5983 GB, free: 96.08 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/0.7993, allocations: 5.039 MB / 0.6032 GB, free: 90.99 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.7993, allocations: 35.94 kB / 0.6032 GB, free: 90.96 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.7993, allocations: 8 kB / 0.6032 GB, free: 90.95 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.7993, allocations: 11.95 kB / 0.6032 GB, free: 90.94 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009994/0.8093, allocations: 10.34 MB / 0.6133 GB, free: 80.54 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.8093, allocations: 5.688 kB / 0.6133 GB, free: 80.54 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.8103, allocations: 0.5226 MB / 0.6139 GB, free: 80.01 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009251/0.8113, allocations: 0.6913 MB / 0.6145 GB, free: 79.32 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.8114, allocations: 59.98 kB / 0.6146 GB, free: 79.26 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004466/0.8158, allocations: 6.394 MB / 0.6208 GB, free: 72.77 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.8158, allocations: 4 kB / 0.6208 GB, free: 72.77 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005804/0.8216, allocations: 7.297 MB / 0.628 GB, free: 65.32 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.8227, allocations: 0.7471 MB / 0.6287 GB, free: 64.57 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/0.823, allocations: 56 kB / 0.6287 GB, free: 64.52 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008316/0.8238, allocations: 163.8 kB / 0.6289 GB, free: 64.36 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/0.824, allocations: 213.8 kB / 0.6291 GB, free: 64.15 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.8241, allocations: 83.98 kB / 0.6292 GB, free: 64.07 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.002158/0.8263, allocations: 2.548 MB / 0.6317 GB, free: 61.54 MB / 458.8 MB Notification: Performance of sort global known variables: time 7e-08/0.8263, allocations: 0 / 0.6317 GB, free: 61.54 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004075/0.8303, allocations: 1.547 MB / 0.6332 GB, free: 59.99 MB / 458.8 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.0003889/0.8307, allocations: 215.4 kB / 0.6334 GB, free: 59.77 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.005188/0.8359, allocations: 5.888 MB / 0.6391 GB, free: 53.87 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.8359, allocations: 0 / 0.6391 GB, free: 53.87 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.8378, allocations: 2.274 MB / 0.6414 GB, free: 51.58 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.8398, allocations: 0.8676 MB / 0.6422 GB, free: 50.73 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01566/0.8555, allocations: 16.16 MB / 0.658 GB, free: 34.51 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003002/0.8585, allocations: 5.568 MB / 0.6634 GB, free: 28.9 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009216/0.8594, allocations: 372.4 kB / 0.6638 GB, free: 28.54 MB / 458.8 MB Notification: Performance of SimCode: time 9.11e-07/0.8594, allocations: 0 / 0.6638 GB, free: 28.54 MB / 458.8 MB Notification: Performance of Templates: time 0.2598/1.119, allocations: 158.4 MB / 0.8184 GB, free: 28.65 MB / 458.8 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.662723183631897]