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.001382/0.001382, allocations: 67.7 kB / 21.24 MB, free: 0.5039 MB / 14.72 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.001528/0.001528, allocations: 163.2 kB / 24.5 MB, free: 3.688 MB / 14.72 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.293/1.293, allocations: 158.6 MB / 186.3 MB, free: 6.508 MB / 174.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 51.92 kB / 298.7 MB, free: 6.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2129, allocations: 49.14 MB / 347.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03079/0.2437, allocations: 25.09 MB / 372.9 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.2611, allocations: 8.249 MB / 381.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.2651, allocations: 218.9 kB / 381.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01982/0.285, allocations: 8.059 MB / 389.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01069/0.2956, allocations: 3.066 MB / 392.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005862/0.3015, allocations: 1.898 MB / 394.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01512/0.3166, allocations: 10.59 MB / 405 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02223/0.3389, allocations: 14.01 MB / 419 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01283/0.3517, allocations: 8.701 MB / 427.7 MB, free: 15.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009819/0.3615, allocations: 6.182 MB / 433.9 MB, free: 9.223 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003189/0.3647, allocations: 1.578 MB / 435.4 MB, free: 7.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004535/0.3692, allocations: 1.933 MB / 437.4 MB, free: 5.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00378/0.373, allocations: 3.191 MB / 440.6 MB, free: 2.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009389/0.3824, allocations: 4.767 MB / 445.3 MB, free: 13.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02733/0.4097, allocations: 21.32 MB / 466.6 MB, free: 8.336 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4097, allocations: 3.938 kB / 466.7 MB, free: 8.332 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4097, allocations: 0 / 466.7 MB, free: 8.332 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004892/0.4102, allocations: 0 / 466.7 MB, free: 8.332 MB / 430.1 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.3823/0.7925, allocations: 12.59 MB / 479.2 MB, free: 97.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.7926, allocations: 8.906 kB / 479.3 MB, free: 97.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04538/0.838, allocations: 8.665 MB / 487.9 MB, free: 93.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.8508, allocations: 5.964 MB / 493.9 MB, free: 87.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006725/0.8515, allocations: 0.7418 MB / 494.6 MB, free: 87.07 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003787/0.8553, allocations: 0.9829 MB / 495.6 MB, free: 86.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04077/0.896, allocations: 16.71 MB / 0.5003 GB, free: 69.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005015/0.8965, allocations: 15.94 kB / 0.5003 GB, free: 69.29 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003322/0.8998, allocations: 415.4 kB / 0.5007 GB, free: 68.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005478/0.9004, allocations: 0.6028 MB / 0.5013 GB, free: 68.29 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03054/0.9309, allocations: 15.89 MB / 0.5168 GB, free: 52.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07926/1.01, allocations: 44.39 MB / 0.5602 GB, free: 7.664 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0189/1.029, allocations: 12.09 MB / 0.572 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006212/1.035, allocations: 3.148 MB / 0.5751 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01914/1.054, allocations: 8.375 MB / 0.5832 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.166e-05/1.055, allocations: 64.62 kB / 0.5833 GB, free: 2.766 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.691e-06/1.055, allocations: 0 / 0.5833 GB, free: 2.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.03137/1.086, allocations: 12.81 MB / 0.5958 GB, free: 5.836 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/1.086, allocations: 77.59 kB / 0.5959 GB, free: 5.746 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008907/1.095, allocations: 4.071 MB / 0.5999 GB, free: 1.691 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004128/1.095, allocations: 69.7 kB / 0.5999 GB, free: 1.617 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00426/1.1, allocations: 4.815 MB / 0.6046 GB, free: 12.76 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.101, allocations: 1.031 MB / 0.6056 GB, free: 11.72 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002601/1.104, allocations: 1.242 MB / 0.6069 GB, free: 10.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/1.104, allocations: 305.1 kB / 0.6071 GB, free: 10.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004563/1.108, allocations: 2.444 MB / 0.6095 GB, free: 7.715 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007799/1.116, allocations: 5.632 MB / 0.615 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01306/1.129, allocations: 8.682 MB / 0.6235 GB, free: 6.285 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/1.129, allocations: 32 kB / 0.6235 GB, free: 6.254 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01688/1.146, allocations: 8.716 MB / 0.6321 GB, free: 13.49 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/1.146, allocations: 55.94 kB / 0.6321 GB, free: 13.43 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/1.146, allocations: 112 kB / 0.6322 GB, free: 13.32 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/1.149, allocations: 0.849 MB / 0.633 GB, free: 12.47 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00486/1.154, allocations: 1.4 MB / 0.6344 GB, free: 11.07 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/1.166, allocations: 7.241 MB / 0.6415 GB, free: 3.711 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004499/1.17, allocations: 359.5 kB / 0.6418 GB, free: 3.359 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008666/1.171, allocations: 352 kB / 0.6422 GB, free: 3.016 MB / 0.4982 GB 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.007376/1.178, allocations: 3.677 MB / 0.6457 GB, free: 15.32 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/1.18, allocations: 409.4 kB / 0.6461 GB, free: 14.92 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.191, allocations: 5.022 MB / 0.651 GB, free: 9.844 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.513e-05/1.191, allocations: 32 kB / 0.6511 GB, free: 9.812 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.348e-05/1.191, allocations: 8 kB / 0.6511 GB, free: 9.805 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-05/1.191, allocations: 19.94 kB / 0.6511 GB, free: 9.785 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2248/1.416, allocations: 10.34 MB / 0.6612 GB, free: 170.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/1.416, allocations: 4.062 kB / 0.6612 GB, free: 170.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002626/1.418, allocations: 0.5219 MB / 0.6617 GB, free: 170.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/1.42, allocations: 0.6863 MB / 0.6624 GB, free: 170.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005043/1.421, allocations: 69.61 kB / 0.6624 GB, free: 170.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007433/1.428, allocations: 6.385 MB / 0.6687 GB, free: 168.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.428, allocations: 7.844 kB / 0.6687 GB, free: 168.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009639/1.438, allocations: 7.309 MB / 0.6758 GB, free: 165.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/1.44, allocations: 0.7446 MB / 0.6766 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007719/1.441, allocations: 54.72 kB / 0.6766 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001792/1.442, allocations: 164.2 kB / 0.6768 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/1.443, allocations: 214.5 kB / 0.677 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/1.443, allocations: 94.33 kB / 0.6771 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003766/1.447, allocations: 2.542 MB / 0.6795 GB, free: 164.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/1.447, allocations: 0 / 0.6795 GB, free: 164.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006372/1.453, allocations: 1.547 MB / 0.681 GB, free: 164.1 MB / 0.5138 GB 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.0006326/1.454, allocations: 219.9 kB / 0.6813 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00834/1.462, allocations: 5.876 MB / 0.687 GB, free: 161.7 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.462, allocations: 0 / 0.687 GB, free: 161.7 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003525/1.466, allocations: 2.279 MB / 0.6892 GB, free: 160.8 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004671/1.47, allocations: 0.878 MB / 0.6901 GB, free: 160.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/1.495, allocations: 16.47 MB / 0.7062 GB, free: 145.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006069/1.501, allocations: 5.759 MB / 0.7118 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004194/1.505, allocations: 1.927 MB / 0.7137 GB, free: 138.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007536/1.506, allocations: 324.4 kB / 0.714 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of SimCode: time 9.92e-07/1.506, allocations: 0 / 0.714 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of Templates: time 0.07994/1.586, allocations: 50.66 MB / 0.7635 GB, free: 87.42 MB / 0.5138 GB " [Timeout remaining time 658] 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: 7.503365859389305]