Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001286/0.001286, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001579/0.001579, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8845/0.8845, allocations: 177.1 MB / 205 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.02e-07/9.02e-07, allocations: 0 / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.292e-05/1.383e-05, allocations: 14.19 kB / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1145/0.1146, allocations: 28.08 MB / 301.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.127, allocations: 8.411 MB / 309.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002782/0.1298, allocations: 251.3 kB / 309.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007485/0.1373, allocations: 8.752 MB / 318.5 MB, free: 3.848 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004415/0.1417, allocations: 2.905 MB / 321.4 MB, free: 1.551 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.144, allocations: 1.904 MB / 323.3 MB, free: 84 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007528/0.1515, allocations: 10.44 MB / 333.8 MB, free: 5.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01417/0.1657, allocations: 13.92 MB / 347.7 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007384/0.1731, allocations: 8.253 MB / 355.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006213/0.1793, allocations: 5.899 MB / 361.8 MB, free: 9.742 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00252/0.1818, allocations: 1.535 MB / 363.4 MB, free: 8.207 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.1843, allocations: 1.917 MB / 365.3 MB, free: 6.289 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001874/0.1862, allocations: 3.074 MB / 368.4 MB, free: 3.207 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003075/0.1892, allocations: 3.961 MB / 372.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008125/0.1974, allocations: 9.903 MB / 382.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1974, allocations: 0 / 382.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1974, allocations: 0 / 382.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001014/0.1975, allocations: 4 kB / 382.2 MB, free: 5.305 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.01494/0.2124, allocations: 12.77 MB / 395 MB, free: 8.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2125, allocations: 8.031 kB / 395 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01571/0.2282, allocations: 7.049 MB / 402.1 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006222/0.2344, allocations: 6.035 MB / 408.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005522/0.2349, allocations: 0.7065 MB / 408.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000909/0.2359, allocations: 0.9334 MB / 409.7 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0114/0.2472, allocations: 8.156 MB / 417.9 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.2474, allocations: 15.94 kB / 417.9 MB, free: 1.316 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005885/0.248, allocations: 388 kB / 418.3 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003022/0.2483, allocations: 0.5116 MB / 418.8 MB, free: 432 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008148/0.2564, allocations: 4.407 MB / 423.2 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2325/0.4889, allocations: 38.64 MB / 461.9 MB, free: 70.82 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00623/0.4951, allocations: 6.873 MB / 468.7 MB, free: 70.55 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.4966, allocations: 1.374 MB / 470.1 MB, free: 70.51 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.4968, allocations: 116 kB / 470.2 MB, free: 70.5 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.4968, allocations: 82.59 kB / 470.3 MB, free: 70.45 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.641e-06/0.4968, allocations: 0 / 470.3 MB, free: 70.45 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01252/0.5093, allocations: 8.806 MB / 479.1 MB, free: 67.54 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.5094, allocations: 97.8 kB / 479.2 MB, free: 67.47 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/0.5122, allocations: 3.413 MB / 482.6 MB, free: 65.02 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/0.5123, allocations: 89.7 kB / 482.7 MB, free: 64.93 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.5138, allocations: 4.419 MB / 487.1 MB, free: 61.21 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005384/0.5143, allocations: 1.438 MB / 488.6 MB, free: 59.82 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.5153, allocations: 1.3 MB / 489.9 MB, free: 58.5 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.188e-05/0.5154, allocations: 480.8 kB / 490.3 MB, free: 58.03 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.5166, allocations: 0.8354 MB / 491.2 MB, free: 57.19 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.5186, allocations: 4.59 MB / 495.7 MB, free: 51.02 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00374/0.5224, allocations: 6.033 MB / 0.49 GB, free: 43.71 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-05/0.5224, allocations: 24 kB / 0.49 GB, free: 43.69 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.005712/0.5281, allocations: 5.289 MB / 0.4952 GB, free: 38.93 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/0.5282, allocations: 41.25 kB / 0.4952 GB, free: 38.89 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.095e-05/0.5282, allocations: 84.88 kB / 0.4953 GB, free: 38.81 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.5297, allocations: 0.7948 MB / 0.4961 GB, free: 38.01 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002205/0.5319, allocations: 1.369 MB / 0.4974 GB, free: 36.74 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004232/0.5361, allocations: 5.061 MB / 0.5024 GB, free: 31.61 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.5377, allocations: 323.5 kB / 0.5027 GB, free: 31.29 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.5379, allocations: 308 kB / 0.503 GB, free: 30.99 MB / 378.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.001389/0.5393, allocations: 0.5701 MB / 0.5035 GB, free: 30.51 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004952/0.5398, allocations: 0.5209 MB / 0.5041 GB, free: 29.99 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.5438, allocations: 3.375 MB / 0.5073 GB, free: 26.61 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.5438, allocations: 40 kB / 0.5074 GB, free: 26.57 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.5438, allocations: 11.94 kB / 0.5074 GB, free: 26.55 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.5438, allocations: 19.92 kB / 0.5074 GB, free: 26.54 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.5551, allocations: 10.78 MB / 0.5179 GB, free: 15.8 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.5551, allocations: 4 kB / 0.5179 GB, free: 15.79 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.5564, allocations: 0.6975 MB / 0.5186 GB, free: 15.13 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.5577, allocations: 0.6691 MB / 0.5193 GB, free: 14.46 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/0.5578, allocations: 87.97 kB / 0.5194 GB, free: 14.38 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003596/0.5614, allocations: 4.526 MB / 0.5238 GB, free: 9.758 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5614, allocations: 11.47 kB / 0.5238 GB, free: 9.75 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004926/0.5663, allocations: 4.353 MB / 0.528 GB, free: 5.273 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009314/0.5673, allocations: 0.7587 MB / 0.5288 GB, free: 4.512 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.5675, allocations: 72 kB / 0.5289 GB, free: 4.441 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008391/0.5684, allocations: 183.8 kB / 0.529 GB, free: 4.262 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.5687, allocations: 282.1 kB / 0.5293 GB, free: 3.988 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.5688, allocations: 120 kB / 0.5294 GB, free: 3.871 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.00147/0.5703, allocations: 1.54 MB / 0.5309 GB, free: 2.34 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.5703, allocations: 3.656 kB / 0.5309 GB, free: 2.34 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.00316/0.5734, allocations: 1.54 MB / 0.5324 GB, free: 0.8008 MB / 378.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.0003529/0.5738, allocations: 270.1 kB / 0.5327 GB, free: 0.5664 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004749/0.5785, allocations: 3.868 MB / 0.5365 GB, free: 12.93 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.5785, allocations: 4 kB / 0.5365 GB, free: 12.92 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002006/0.5805, allocations: 1.872 MB / 0.5383 GB, free: 11.11 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/0.5827, allocations: 0.9164 MB / 0.5392 GB, free: 10.23 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.5973, allocations: 13.41 MB / 0.5523 GB, free: 12.65 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.599, allocations: 2.471 MB / 0.5547 GB, free: 10.14 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00239/0.6014, allocations: 1.598 MB / 0.5563 GB, free: 8.531 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006354/0.602, allocations: 356.4 kB / 0.5566 GB, free: 8.184 MB / 410.8 MB Notification: Performance of SimCode: time 1.112e-06/0.602, allocations: 0 / 0.5566 GB, free: 8.184 MB / 410.8 MB Notification: Performance of Templates: time 0.1742/0.7762, allocations: 57.5 MB / 0.6127 GB, free: 113.3 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.429048033896834]