Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001996/0.001996, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00256/0.00256, allocations: 160.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 177 MB / 204.4 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 272.2 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.304e-05/3.476e-05, allocations: 2.312 kB / 272.2 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1486/0.1486, allocations: 24.65 MB / 296.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01674/0.1654, allocations: 8.207 MB / 305.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006282/0.1717, allocations: 261.2 kB / 305.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0174/0.189, allocations: 8.049 MB / 313.4 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.1992, allocations: 2.889 MB / 316.3 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005235/0.2044, allocations: 1.86 MB / 318.2 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01459/0.219, allocations: 10.44 MB / 328.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02914/0.2481, allocations: 13.9 MB / 342.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0185/0.2667, allocations: 8.12 MB / 350.6 MB, free: 3.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01168/0.2783, allocations: 5.259 MB / 355.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004819/0.2832, allocations: 1.539 MB / 357.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007139/0.2903, allocations: 1.917 MB / 359.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00562/0.2959, allocations: 3.043 MB / 362.4 MB, free: 7.957 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01026/0.3062, allocations: 3.91 MB / 366.3 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03207/0.3382, allocations: 20.95 MB / 387.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3382, allocations: 4 kB / 387.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3382, allocations: 0 / 387.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005469/0.3388, allocations: 0 / 387.2 MB, free: 15.02 MB / 346.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.03884/0.3776, allocations: 11.92 MB / 399.2 MB, free: 3.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3777, allocations: 11.97 kB / 399.2 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03585/0.4135, allocations: 7.042 MB / 406.2 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/0.4299, allocations: 6.641 MB / 412.9 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001053/0.4309, allocations: 0.6989 MB / 413.6 MB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003949/0.4349, allocations: 0.9412 MB / 414.5 MB, free: 3.602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04113/0.476, allocations: 15.25 MB / 429.7 MB, free: 4.238 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000307/0.4763, allocations: 15.91 kB / 429.8 MB, free: 4.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002926/0.4792, allocations: 392 kB / 430.1 MB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006796/0.4799, allocations: 0.5155 MB / 430.7 MB, free: 3.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.155/0.6349, allocations: 13.71 MB / 444.4 MB, free: 109.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05953/0.6945, allocations: 42.5 MB / 486.9 MB, free: 75.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.7057, allocations: 8.036 MB / 494.9 MB, free: 68.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003373/0.709, allocations: 2.799 MB / 497.7 MB, free: 66.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002637/0.7093, allocations: 118.9 kB / 497.8 MB, free: 65.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.7093, allocations: 69.58 kB / 497.9 MB, free: 65.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=384): time 6.041e-06/0.7093, allocations: 0 / 497.9 MB, free: 65.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=392): time 0.02347/0.7328, allocations: 14.82 MB / 0.5007 GB, free: 50.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.7328, allocations: 94.48 kB / 0.5008 GB, free: 50.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003634/0.7365, allocations: 3.559 MB / 0.5043 GB, free: 47.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002146/0.7367, allocations: 93.7 kB / 0.5043 GB, free: 47.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.738, allocations: 4.174 MB / 0.5084 GB, free: 43.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006633/0.7387, allocations: 1.389 MB / 0.5098 GB, free: 41.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.74, allocations: 1.16 MB / 0.5109 GB, free: 40.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.165e-05/0.74, allocations: 301.1 kB / 0.5112 GB, free: 40.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00288/0.7429, allocations: 2.592 MB / 0.5137 GB, free: 37.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00367/0.7466, allocations: 5.116 MB / 0.5187 GB, free: 31.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007088/0.7537, allocations: 8.348 MB / 0.5269 GB, free: 21.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-05/0.7537, allocations: 24 kB / 0.5269 GB, free: 21.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01127/0.765, allocations: 8.918 MB / 0.5356 GB, free: 12.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.923e-05/0.765, allocations: 40 kB / 0.5356 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.321e-05/0.7651, allocations: 83.94 kB / 0.5357 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002729/0.7678, allocations: 1.004 MB / 0.5367 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004024/0.7718, allocations: 1.376 MB / 0.538 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00851/0.7804, allocations: 7.398 MB / 0.5453 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003398/0.7838, allocations: 335.4 kB / 0.5456 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004668/0.7842, allocations: 312 kB / 0.5459 GB, free: 2.16 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.004797/0.789, allocations: 3.513 MB / 0.5493 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/0.7904, allocations: 0.5209 MB / 0.5498 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/0.8022, allocations: 5.957 MB / 0.5556 GB, free: 8.113 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/0.8023, allocations: 40 kB / 0.5557 GB, free: 8.074 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/0.8023, allocations: 8 kB / 0.5557 GB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-05/0.8023, allocations: 19.92 kB / 0.5557 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02661/0.8289, allocations: 13.03 MB / 0.5684 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.519e-05/0.829, allocations: 8 kB / 0.5685 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00353/0.8325, allocations: 0.6943 MB / 0.5691 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003086/0.8356, allocations: 0.8499 MB / 0.57 GB, free: 9.414 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00046/0.836, allocations: 91.97 kB / 0.57 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/0.8473, allocations: 6.436 MB / 0.5763 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/0.8473, allocations: 11.94 kB / 0.5763 GB, free: 2.781 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1408/0.9881, allocations: 8.847 MB / 0.585 GB, free: 124.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/0.9902, allocations: 0.8387 MB / 0.5858 GB, free: 124.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005482/0.9907, allocations: 74.31 kB / 0.5859 GB, free: 124.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001823/0.9926, allocations: 183.5 kB / 0.586 GB, free: 124.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00056/0.9931, allocations: 280.4 kB / 0.5863 GB, free: 124.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/0.9934, allocations: 119.2 kB / 0.5864 GB, free: 124.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003258/0.9966, allocations: 2.285 MB / 0.5887 GB, free: 123.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.9966, allocations: 0 / 0.5887 GB, free: 123.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005005/1.002, allocations: 1.549 MB / 0.5902 GB, free: 123.4 MB / 410.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.0005246/1.002, allocations: 260.5 kB / 0.5904 GB, free: 123.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008379/1.011, allocations: 6.274 MB / 0.5965 GB, free: 121 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/1.011, allocations: 0.6562 kB / 0.5965 GB, free: 121 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003663/1.014, allocations: 2.729 MB / 0.5992 GB, free: 119.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004016/1.018, allocations: 0.9269 MB / 0.6001 GB, free: 119.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02435/1.043, allocations: 16.16 MB / 0.6159 GB, free: 111.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005588/1.048, allocations: 5.519 MB / 0.6213 GB, free: 107.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004203/1.052, allocations: 1.867 MB / 0.6231 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009753/1.053, allocations: 354.1 kB / 0.6235 GB, free: 105.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/1.053, allocations: 0 / 0.6235 GB, free: 105.7 MB / 410.7 MB Notification: Performance of Templates: time 0.08247/1.136, allocations: 55.35 MB / 0.6775 GB, free: 52.82 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.391656299936585]