Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007912/0.0007912, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009758/0.001767, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006275/0.0006275, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008915/0.001519, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8689/0.8689, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07299/0.9419, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 3.938 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113e-05/1.229e-05, allocations: 2.312 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01908/0.01909, allocations: 27.04 MB / 266.6 MB, free: 7.996 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1223/0.1414, allocations: 8.758 MB / 275.4 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004477/0.1459, allocations: 252.5 kB / 275.6 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01094/0.1568, allocations: 8.651 MB / 284.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005989/0.1628, allocations: 2.895 MB / 287.2 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002912/0.1657, allocations: 1.878 MB / 289 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009144/0.1748, allocations: 10.44 MB / 299.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01644/0.1913, allocations: 13.98 MB / 313.5 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008893/0.2002, allocations: 8.542 MB / 322 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00625/0.2064, allocations: 5.956 MB / 328 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00184/0.2083, allocations: 1.535 MB / 329.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002454/0.2107, allocations: 1.906 MB / 331.4 MB, free: 1.316 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.2123, allocations: 2.449 MB / 333.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.215, allocations: 3.311 MB / 337.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006722/0.2217, allocations: 9.352 MB / 346.5 MB, free: 2.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.407e-05/0.2217, allocations: 0 / 346.5 MB, free: 2.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2217, allocations: 0 / 346.5 MB, free: 2.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.155e-05/0.2218, allocations: 0 / 346.5 MB, free: 2.57 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.01439/0.2362, allocations: 13.39 MB / 359.9 MB, free: 5.695 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.711e-05/0.2362, allocations: 8.031 kB / 359.9 MB, free: 5.688 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01357/0.2498, allocations: 5.674 MB / 365.6 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005253/0.255, allocations: 3.308 MB / 368.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003183/0.2554, allocations: 0.7077 MB / 369.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001188/0.2565, allocations: 0.9331 MB / 370.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008602/0.2651, allocations: 7.633 MB / 378.2 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.2653, allocations: 21.5 kB / 378.2 MB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006132/0.2659, allocations: 389.6 kB / 378.6 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003163/0.2662, allocations: 0.5116 MB / 379.1 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005378/0.2716, allocations: 3.833 MB / 382.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03213/0.3037, allocations: 29.52 MB / 412.4 MB, free: 2.621 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1163/0.42, allocations: 4.525 MB / 416.9 MB, free: 85.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/0.4218, allocations: 1.042 MB / 418 MB, free: 85.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002616/0.4221, allocations: 105.9 kB / 418.1 MB, free: 85.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.636e-05/0.4221, allocations: 76.14 kB / 418.2 MB, free: 85.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=384): time 5.381e-06/0.4221, allocations: 0 / 418.2 MB, free: 85.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=392): time 0.01034/0.4325, allocations: 6.377 MB / 424.5 MB, free: 85.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.4325, allocations: 92.83 kB / 424.6 MB, free: 84.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.434, allocations: 2.448 MB / 427.1 MB, free: 84.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.4342, allocations: 89.92 kB / 427.2 MB, free: 84.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00086/0.435, allocations: 3.846 MB / 431 MB, free: 82.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005037/0.4355, allocations: 1.387 MB / 432.4 MB, free: 81.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008824/0.4364, allocations: 1.084 MB / 433.5 MB, free: 81.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.516e-05/0.4364, allocations: 305.1 kB / 433.8 MB, free: 80.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/0.4371, allocations: 0.5582 MB / 434.3 MB, free: 80.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.4383, allocations: 3.099 MB / 437.4 MB, free: 77.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002408/0.4407, allocations: 4.421 MB / 441.9 MB, free: 74.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.311e-05/0.4407, allocations: 23.41 kB / 441.9 MB, free: 74.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.003579/0.4443, allocations: 3.868 MB / 445.8 MB, free: 74.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.4443, allocations: 46.11 kB / 445.8 MB, free: 74.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-05/0.4444, allocations: 88.47 kB / 445.9 MB, free: 74.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.4455, allocations: 0.7297 MB / 446.6 MB, free: 74.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.4477, allocations: 1.438 MB / 448.1 MB, free: 74.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.4509, allocations: 3.773 MB / 451.8 MB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.4522, allocations: 248.7 kB / 452.1 MB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002377/0.4525, allocations: 247.9 kB / 452.3 MB, free: 72.88 MB / 378.7 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.001177/0.4536, allocations: 0.5217 MB / 452.8 MB, free: 72.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004169/0.454, allocations: 368 kB / 453.2 MB, free: 72.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002536/0.4566, allocations: 2.508 MB / 455.7 MB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.4566, allocations: 42.25 kB / 455.7 MB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.4566, allocations: 7.375 kB / 455.7 MB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.896e-05/0.4566, allocations: 22.17 kB / 455.8 MB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006786/0.4634, allocations: 6.716 MB / 462.5 MB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.4634, allocations: 3.969 kB / 462.5 MB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.4647, allocations: 0.6978 MB / 463.2 MB, free: 71.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005759/0.4653, allocations: 487.8 kB / 463.7 MB, free: 70.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/0.4663, allocations: 0.6067 MB / 464.3 MB, free: 70.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.4664, allocations: 83.02 kB / 464.4 MB, free: 70.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/0.4689, allocations: 3.347 MB / 467.7 MB, free: 67.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4689, allocations: 8.422 kB / 467.7 MB, free: 67.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00278/0.4717, allocations: 3.088 MB / 470.8 MB, free: 64.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.472, allocations: 83.92 kB / 470.9 MB, free: 64.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.4726, allocations: 95.98 kB / 471 MB, free: 64.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.4729, allocations: 269.2 kB / 471.2 MB, free: 64.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.473, allocations: 84.73 kB / 471.3 MB, free: 63.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006725/0.4736, allocations: 1.096 MB / 472.4 MB, free: 63.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4736, allocations: 0 / 472.4 MB, free: 63.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002691/0.4763, allocations: 1.535 MB / 473.9 MB, free: 61.47 MB / 378.7 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.0003299/0.4767, allocations: 247.2 kB / 474.2 MB, free: 61.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002822/0.4795, allocations: 3.05 MB / 477.2 MB, free: 58.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001292/0.4796, allocations: 95.75 kB / 477.3 MB, free: 58.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.4809, allocations: 1.489 MB / 478.8 MB, free: 57.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.4828, allocations: 1.229 MB / 480 MB, free: 55.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05091/0.5337, allocations: 13.44 MB / 493.5 MB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.535, allocations: 1.78 MB / 495.3 MB, free: 40.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001745/0.5368, allocations: 0.6821 MB / 496 MB, free: 39.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.5381, allocations: 0.8932 MB / 496.8 MB, free: 38.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5381, allocations: 0.6562 kB / 496.8 MB, free: 38.95 MB / 378.7 MB Notification: Performance of Templates: time 0.07404/0.6122, allocations: 61.89 MB / 0.5456 GB, free: 9.926 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.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.004679536446929]