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.001939/0.001939, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001963/0.001963, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 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 1.551/1.551, allocations: 173.3 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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.393e-06/1.393e-06, allocations: 0 / 267.4 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.775e-05, allocations: 2.312 kB / 267.4 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.145/0.1451, allocations: 27.83 MB / 295.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.1595, allocations: 8.316 MB / 303.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00493/0.1644, allocations: 252.2 kB / 303.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0177/0.1821, allocations: 8.717 MB / 312.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008945/0.1911, allocations: 2.911 MB / 315.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004842/0.1959, allocations: 1.871 MB / 317.3 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.2072, allocations: 10.37 MB / 327.6 MB, free: 14.67 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02707/0.2343, allocations: 13.92 MB / 341.5 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01626/0.2505, allocations: 8.183 MB / 349.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01142/0.2619, allocations: 5.809 MB / 355.5 MB, free: 2.594 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005044/0.267, allocations: 1.543 MB / 357.1 MB, free: 1.047 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006775/0.2738, allocations: 1.89 MB / 359 MB, free: 15.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005403/0.2792, allocations: 3.09 MB / 362.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00965/0.2888, allocations: 3.965 MB / 366 MB, free: 8.086 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03142/0.3202, allocations: 21.04 MB / 387.1 MB, free: 2.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3202, allocations: 4 kB / 387.1 MB, free: 2.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3202, allocations: 0 / 387.1 MB, free: 2.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005047/0.3207, allocations: 0 / 387.1 MB, free: 2.98 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.04005/0.3608, allocations: 13.76 MB / 400.8 MB, free: 5.117 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.3609, allocations: 8.922 kB / 400.8 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03648/0.3973, allocations: 7.131 MB / 408 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01644/0.4138, allocations: 6.062 MB / 414 MB, free: 7.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001186/0.415, allocations: 0.7016 MB / 414.7 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003639/0.4186, allocations: 0.9335 MB / 415.7 MB, free: 6.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04262/0.4612, allocations: 15.5 MB / 431.2 MB, free: 6.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004488/0.4617, allocations: 15.89 kB / 431.2 MB, free: 6.555 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002863/0.4645, allocations: 388 kB / 431.6 MB, free: 6.176 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000737/0.4653, allocations: 0.5194 MB / 432.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.255/0.7202, allocations: 12.14 MB / 444.2 MB, free: 109.5 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08496/0.8052, allocations: 72.29 MB / 0.5044 GB, free: 47.87 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.8174, allocations: 7.451 MB / 0.5117 GB, free: 41.65 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003611/0.821, allocations: 2.41 MB / 0.514 GB, free: 39.24 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003052/0.8213, allocations: 103.5 kB / 0.5141 GB, free: 39.14 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/0.8214, allocations: 80.41 kB / 0.5142 GB, free: 39.05 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 6.672e-06/0.8214, allocations: 0 / 0.5142 GB, free: 39.05 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.02478/0.8462, allocations: 12.82 MB / 0.5267 GB, free: 26.59 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.8462, allocations: 90.48 kB / 0.5268 GB, free: 26.48 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005717/0.8519, allocations: 5.249 MB / 0.5319 GB, free: 21.33 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003865/0.8523, allocations: 89.7 kB / 0.532 GB, free: 21.23 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001976/0.8543, allocations: 4.678 MB / 0.5366 GB, free: 16.65 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/0.8553, allocations: 1.525 MB / 0.5381 GB, free: 15.15 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001769/0.8571, allocations: 1.55 MB / 0.5396 GB, free: 13.58 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 5.177e-05/0.8571, allocations: 480.7 kB / 0.5401 GB, free: 13.11 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002728/0.8599, allocations: 2.116 MB / 0.5421 GB, free: 10.99 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/0.8638, allocations: 6.102 MB / 0.5481 GB, free: 3.27 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/0.8755, allocations: 9.018 MB / 0.5569 GB, free: 8.637 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/0.8756, allocations: 24 kB / 0.5569 GB, free: 8.613 MB / 394.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01688/0.8925, allocations: 8.007 MB / 0.5647 GB, free: 0.5742 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.8926, allocations: 40 kB / 0.5648 GB, free: 0.5352 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/0.8928, allocations: 91.98 kB / 0.5649 GB, free: 456 kB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003617/0.8964, allocations: 1.006 MB / 0.5658 GB, free: 15.43 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005595/0.902, allocations: 1.369 MB / 0.5672 GB, free: 14.06 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/0.9162, allocations: 8.007 MB / 0.575 GB, free: 5.93 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004317/0.9205, allocations: 335.5 kB / 0.5753 GB, free: 5.602 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/0.9216, allocations: 304 kB / 0.5756 GB, free: 5.305 MB / 410.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.007526/0.9291, allocations: 3.25 MB / 0.5788 GB, free: 2.039 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002167/0.9313, allocations: 0.5286 MB / 0.5793 GB, free: 1.508 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1733/1.105, allocations: 5.136 MB / 0.5843 GB, free: 117.7 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-05/1.105, allocations: 40.61 kB / 0.5844 GB, free: 117.7 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.542e-05/1.105, allocations: 7.656 kB / 0.5844 GB, free: 117.7 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.468e-05/1.105, allocations: 19.64 kB / 0.5844 GB, free: 117.7 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02973/1.134, allocations: 16.2 MB / 0.6002 GB, free: 116.4 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/1.134, allocations: 7.062 kB / 0.6002 GB, free: 116.4 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002902/1.137, allocations: 0.6898 MB / 0.6009 GB, free: 116.4 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002714/1.14, allocations: 0.8486 MB / 0.6017 GB, free: 116.3 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005919/1.141, allocations: 90.39 kB / 0.6018 GB, free: 116.3 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007995/1.149, allocations: 7.037 MB / 0.6087 GB, free: 112.4 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.149, allocations: 7.844 kB / 0.6087 GB, free: 112.4 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/1.159, allocations: 7.36 MB / 0.6159 GB, free: 109.5 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002427/1.162, allocations: 0.7522 MB / 0.6166 GB, free: 109.2 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007229/1.163, allocations: 74 kB / 0.6167 GB, free: 109.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/1.165, allocations: 181 kB / 0.6168 GB, free: 109.1 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004982/1.165, allocations: 291.4 kB / 0.6171 GB, free: 109.1 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/1.165, allocations: 116.9 kB / 0.6172 GB, free: 109.1 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003385/1.169, allocations: 2.63 MB / 0.6198 GB, free: 108 MB / 410.8 MB Notification: Performance of sort global known variables: time 6e-08/1.169, allocations: 0 / 0.6198 GB, free: 108 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005627/1.174, allocations: 1.546 MB / 0.6213 GB, free: 107.8 MB / 410.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.0006593/1.175, allocations: 262.4 kB / 0.6216 GB, free: 107.7 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.009084/1.184, allocations: 6.125 MB / 0.6275 GB, free: 104 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.77e-05/1.184, allocations: 0 / 0.6275 GB, free: 104 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003939/1.188, allocations: 2.676 MB / 0.6302 GB, free: 101.6 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004509/1.192, allocations: 0.9138 MB / 0.631 GB, free: 100.9 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/1.215, allocations: 14.99 MB / 0.6457 GB, free: 86.08 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004974/1.22, allocations: 5.032 MB / 0.6506 GB, free: 80.99 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003917/1.224, allocations: 1.59 MB / 0.6521 GB, free: 79.4 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/1.225, allocations: 340.4 kB / 0.6525 GB, free: 79.07 MB / 410.8 MB Notification: Performance of SimCode: time 1.633e-06/1.225, allocations: 0 / 0.6525 GB, free: 79.07 MB / 410.8 MB Notification: Performance of Templates: time 0.08493/1.31, allocations: 54.51 MB / 0.7057 GB, free: 25.27 MB / 410.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.457209498039447]