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.0009068/0.0009068, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.000887/0.000887, allocations: 138.6 kB / 24.97 MB, free: 9.309 MB / 18.57 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.9002/0.9002, allocations: 173.3 MB / 201.5 MB, free: 9.27 MB / 186.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.042e-06/1.042e-06, allocations: 0 / 268.1 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.047e-05, allocations: 2.312 kB / 268.1 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1254/0.1254, allocations: 27.88 MB / 296 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.1383, allocations: 8.302 MB / 304.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003624/0.142, allocations: 252.7 kB / 304.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008267/0.1502, allocations: 8.725 MB / 313.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005131/0.1553, allocations: 2.913 MB / 316.2 MB, free: 7.492 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.1578, allocations: 1.87 MB / 318.1 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006816/0.1646, allocations: 10.37 MB / 328.4 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01518/0.1798, allocations: 13.92 MB / 342.3 MB, free: 412 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007568/0.1874, allocations: 8.183 MB / 350.5 MB, free: 8.207 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005979/0.1933, allocations: 5.798 MB / 356.3 MB, free: 2.398 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002334/0.1957, allocations: 1.539 MB / 357.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002252/0.1979, allocations: 1.898 MB / 359.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001751/0.1997, allocations: 3.101 MB / 362.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003625/0.2033, allocations: 3.953 MB / 366.8 MB, free: 7.887 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008924/0.2122, allocations: 9.91 MB / 376.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2122, allocations: 4 kB / 376.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2122, allocations: 0 / 376.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002306/0.2125, allocations: 0 / 376.7 MB, free: 13.95 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.01687/0.2293, allocations: 12.76 MB / 389.5 MB, free: 1.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.2294, allocations: 8.922 kB / 389.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01856/0.2479, allocations: 7.135 MB / 396.6 MB, free: 9.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00912/0.257, allocations: 6.031 MB / 402.7 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004051/0.2575, allocations: 0.695 MB / 403.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/0.2587, allocations: 0.9373 MB / 404.3 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.2716, allocations: 8.136 MB / 412.4 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001493/0.2718, allocations: 27.83 kB / 412.5 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006571/0.2724, allocations: 392 kB / 412.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003447/0.2728, allocations: 0.5116 MB / 413.4 MB, free: 9.008 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008576/0.2813, allocations: 4.38 MB / 417.7 MB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2268/0.5081, allocations: 38.64 MB / 456.4 MB, free: 99.82 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006362/0.5145, allocations: 6.855 MB / 463.2 MB, free: 99.55 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.516, allocations: 1.385 MB / 464.6 MB, free: 99.5 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001775/0.5162, allocations: 99.16 kB / 464.7 MB, free: 99.5 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.5162, allocations: 75 kB / 464.8 MB, free: 99.45 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.25e-06/0.5162, allocations: 0 / 464.8 MB, free: 99.45 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01258/0.5288, allocations: 8.789 MB / 473.6 MB, free: 97.9 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.5289, allocations: 90.45 kB / 473.7 MB, free: 97.84 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.5316, allocations: 3.406 MB / 477.1 MB, free: 97.39 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001379/0.5317, allocations: 87.52 kB / 477.2 MB, free: 97.36 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.5329, allocations: 4.417 MB / 481.6 MB, free: 95.39 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005016/0.5334, allocations: 1.441 MB / 483 MB, free: 94.39 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009984/0.5344, allocations: 1.298 MB / 484.3 MB, free: 93.63 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.968e-05/0.5345, allocations: 480.8 kB / 484.8 MB, free: 93.16 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.5356, allocations: 0.8406 MB / 485.6 MB, free: 92.42 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.5377, allocations: 4.582 MB / 490.2 MB, free: 86.26 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003616/0.5413, allocations: 6.031 MB / 496.2 MB, free: 78.64 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.18e-05/0.5413, allocations: 24 kB / 496.3 MB, free: 78.62 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.005514/0.5468, allocations: 5.279 MB / 0.4898 GB, free: 73.31 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.5469, allocations: 40 kB / 0.4898 GB, free: 73.27 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-05/0.5469, allocations: 84 kB / 0.4899 GB, free: 73.19 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.5483, allocations: 0.7949 MB / 0.4907 GB, free: 72.39 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002154/0.5505, allocations: 1.371 MB / 0.492 GB, free: 71.02 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00424/0.5547, allocations: 5.066 MB / 0.497 GB, free: 65.83 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.5563, allocations: 331.5 kB / 0.4973 GB, free: 65.5 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/0.5566, allocations: 300 kB / 0.4976 GB, free: 65.21 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.001431/0.558, allocations: 0.5723 MB / 0.4981 GB, free: 64.62 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005066/0.5585, allocations: 0.5247 MB / 0.4986 GB, free: 64.1 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.5625, allocations: 3.423 MB / 0.502 GB, free: 60.64 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.5625, allocations: 40 kB / 0.502 GB, free: 60.6 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5625, allocations: 8 kB / 0.502 GB, free: 60.59 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.907e-05/0.5625, allocations: 19.92 kB / 0.502 GB, free: 60.57 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/0.5734, allocations: 10.74 MB / 0.5125 GB, free: 49.76 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.5734, allocations: 4 kB / 0.5125 GB, free: 49.75 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.5747, allocations: 0.6943 MB / 0.5132 GB, free: 49.06 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.576, allocations: 0.6688 MB / 0.5139 GB, free: 48.39 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.5761, allocations: 83.97 kB / 0.514 GB, free: 48.3 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003561/0.5796, allocations: 4.542 MB / 0.5184 GB, free: 43.65 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5796, allocations: 4 kB / 0.5184 GB, free: 43.65 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004778/0.5844, allocations: 4.336 MB / 0.5226 GB, free: 39.16 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008815/0.5853, allocations: 0.7548 MB / 0.5234 GB, free: 38.4 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.5856, allocations: 75.98 kB / 0.5234 GB, free: 38.33 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008393/0.5864, allocations: 183.8 kB / 0.5236 GB, free: 38.15 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.5867, allocations: 282.5 kB / 0.5239 GB, free: 37.87 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.5868, allocations: 116 kB / 0.524 GB, free: 37.76 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001435/0.5883, allocations: 1.545 MB / 0.5255 GB, free: 36.22 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.5883, allocations: 0 / 0.5255 GB, free: 36.22 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003275/0.5916, allocations: 1.543 MB / 0.527 GB, free: 34.68 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.0003422/0.5919, allocations: 258.2 kB / 0.5273 GB, free: 34.42 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.596, allocations: 3.874 MB / 0.531 GB, free: 30.53 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.596, allocations: 0 / 0.531 GB, free: 30.53 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.5978, allocations: 1.865 MB / 0.5329 GB, free: 28.64 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.5998, allocations: 0.9206 MB / 0.5338 GB, free: 27.77 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.6123, allocations: 13.46 MB / 0.5469 GB, free: 14.11 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001331/0.6136, allocations: 2.479 MB / 0.5493 GB, free: 11.59 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.002198/0.6158, allocations: 1.587 MB / 0.5509 GB, free: 9.996 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.6164, allocations: 344.4 kB / 0.5512 GB, free: 9.656 MB / 378.8 MB Notification: Performance of SimCode: time 1.072e-06/0.6164, allocations: 0 / 0.5512 GB, free: 9.656 MB / 378.8 MB Notification: Performance of Templates: time 0.1651/0.7815, allocations: 54.58 MB / 0.6045 GB, free: 117.5 MB / 394.8 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 -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.367518181214109]