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.002385/0.002385, allocations: 91.66 kB / 21.73 MB, free: 2.551 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.002864/0.002864, allocations: 159.8 kB / 25.02 MB, free: 9.074 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 1.318/1.318, allocations: 158.6 MB / 186.8 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 178] 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.432e-06/1.432e-06, allocations: 0 / 250.4 MB, free: 7.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.581e-05, allocations: 2.312 kB / 250.4 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.04006/0.04009, allocations: 28.39 MB / 278.8 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01933/0.05942, allocations: 8.452 MB / 287.3 MB, free: 2.781 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005479/0.0649, allocations: 218.9 kB / 287.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02295/0.08785, allocations: 8.731 MB / 296.2 MB, free: 9.793 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.09928, allocations: 3.15 MB / 299.4 MB, free: 6.625 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00604/0.1053, allocations: 1.936 MB / 301.3 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01628/0.1216, allocations: 10.92 MB / 312.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02666/0.1483, allocations: 14.08 MB / 326.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01662/0.1649, allocations: 8.514 MB / 334.8 MB, free: 2.965 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01258/0.1775, allocations: 6.133 MB / 340.9 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004891/0.1824, allocations: 1.578 MB / 342.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007559/0.1899, allocations: 1.956 MB / 344.5 MB, free: 9.281 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006476/0.1964, allocations: 3.3 MB / 347.8 MB, free: 5.973 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01043/0.2068, allocations: 4.152 MB / 351.9 MB, free: 1.812 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1567/0.3635, allocations: 21.61 MB / 373.5 MB, free: 41.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3635, allocations: 0 / 373.5 MB, free: 41.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3635, allocations: 0.625 kB / 373.5 MB, free: 41.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007157/0.3643, allocations: 3.438 kB / 373.5 MB, free: 41.07 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.038/0.4023, allocations: 14.43 MB / 388 MB, free: 35.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.4023, allocations: 7.281 kB / 388 MB, free: 35.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04543/0.4477, allocations: 10.52 MB / 398.5 MB, free: 30.63 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.4615, allocations: 5.519 MB / 404 MB, free: 27.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005464/0.462, allocations: 0.7416 MB / 404.8 MB, free: 26.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003693/0.4657, allocations: 0.9856 MB / 405.7 MB, free: 25.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03452/0.5002, allocations: 16.83 MB / 422.6 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003205/0.5005, allocations: 16.94 kB / 422.6 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002808/0.5034, allocations: 411.1 kB / 423 MB, free: 8.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004493/0.5038, allocations: 0.6028 MB / 423.6 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03069/0.5345, allocations: 14.07 MB / 437.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2773/0.8118, allocations: 79.41 MB / 0.5049 GB, free: 116.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0206/0.8324, allocations: 11.51 MB / 0.5162 GB, free: 116 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004398/0.8368, allocations: 2.704 MB / 0.5188 GB, free: 115.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/0.8533, allocations: 8.408 MB / 0.527 GB, free: 115.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.8533, allocations: 66.61 kB / 0.5271 GB, free: 115.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=270): time 5.34e-06/0.8533, allocations: 0 / 0.5271 GB, free: 115.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.02243/0.8757, allocations: 11.27 MB / 0.5381 GB, free: 113.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.8758, allocations: 84.52 kB / 0.5382 GB, free: 113 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006657/0.8824, allocations: 5.85 MB / 0.5439 GB, free: 112.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003669/0.8828, allocations: 73.7 kB / 0.544 GB, free: 112.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002488/0.8853, allocations: 5.318 MB / 0.5492 GB, free: 109.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009523/0.8862, allocations: 1.124 MB / 0.5503 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001934/0.8882, allocations: 1.594 MB / 0.5518 GB, free: 108.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.8882, allocations: 476.8 kB / 0.5523 GB, free: 108.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002589/0.8908, allocations: 1.987 MB / 0.5542 GB, free: 107.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004183/0.895, allocations: 6.947 MB / 0.561 GB, free: 100.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008009/0.903, allocations: 9.697 MB / 0.5705 GB, free: 91.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-05/0.9031, allocations: 34.56 kB / 0.5705 GB, free: 91.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01214/0.9152, allocations: 8.158 MB / 0.5785 GB, free: 85.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.9153, allocations: 56.06 kB / 0.5785 GB, free: 85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/0.9154, allocations: 108 kB / 0.5786 GB, free: 84.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002821/0.9183, allocations: 1.019 MB / 0.5796 GB, free: 83.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/0.9225, allocations: 1.4 MB / 0.581 GB, free: 82.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008928/0.9315, allocations: 7.876 MB / 0.5887 GB, free: 74.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004546/0.936, allocations: 347.5 kB / 0.589 GB, free: 74.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006653/0.9367, allocations: 349.5 kB / 0.5893 GB, free: 73.78 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.004437/0.9411, allocations: 3.378 MB / 0.5926 GB, free: 70.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009333/0.942, allocations: 0.4896 MB / 0.5931 GB, free: 69.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006996/0.949, allocations: 4.329 MB / 0.5973 GB, free: 65.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.9491, allocations: 28 kB / 0.5974 GB, free: 65.49 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.9491, allocations: 15.94 kB / 0.5974 GB, free: 65.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/0.9491, allocations: 11.95 kB / 0.5974 GB, free: 65.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02138/0.9705, allocations: 13.67 MB / 0.6107 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.9705, allocations: 4 kB / 0.6108 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/0.9726, allocations: 0.5149 MB / 0.6113 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002547/0.9752, allocations: 0.8467 MB / 0.6121 GB, free: 50.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/0.9754, allocations: 67.92 kB / 0.6121 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007621/0.983, allocations: 7.042 MB / 0.619 GB, free: 43.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.983, allocations: 7.938 kB / 0.619 GB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009028/0.992, allocations: 6.275 MB / 0.6252 GB, free: 36.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002262/0.9943, allocations: 0.6846 MB / 0.6258 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006218/0.9949, allocations: 56 kB / 0.6259 GB, free: 35.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001842/0.9968, allocations: 163.8 kB / 0.626 GB, free: 35.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004187/0.9972, allocations: 213.8 kB / 0.6262 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/0.9974, allocations: 88.02 kB / 0.6263 GB, free: 35.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003667/1.001, allocations: 2.887 MB / 0.6291 GB, free: 32.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/1.001, allocations: 0 / 0.6291 GB, free: 32.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005922/1.007, allocations: 1.539 MB / 0.6306 GB, free: 31.08 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.0005391/1.007, allocations: 221.8 kB / 0.6309 GB, free: 30.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008542/1.016, allocations: 5.833 MB / 0.6366 GB, free: 24.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/1.016, allocations: 192 / 0.6366 GB, free: 24.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003171/1.019, allocations: 2.247 MB / 0.6387 GB, free: 22.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/1.023, allocations: 0.9052 MB / 0.6396 GB, free: 21.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1501/1.173, allocations: 15.46 MB / 0.6547 GB, free: 115.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01011/1.184, allocations: 5.249 MB / 0.6599 GB, free: 114.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005/1.189, allocations: 1.674 MB / 0.6615 GB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009621/1.19, allocations: 324.7 kB / 0.6618 GB, free: 114.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.19, allocations: 0 / 0.6618 GB, free: 114.8 MB / 410.7 MB Notification: Performance of Templates: time 0.08823/1.278, allocations: 50.37 MB / 0.711 GB, free: 89.99 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","/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: 7.232687958050519]