Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 174.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.3 MB / 235.5 MB, free: 2.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008796/0.0008796, allocations: 94.09 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.152e-05/2.156e-05, allocations: 0 / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.4532, allocations: 80.68 MB / 474.9 MB, free: 6.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4535, allocations: 75.8 kB / 475 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01675/0.4703, allocations: 5.851 MB / 480.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4704, allocations: 0 / 480.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.059e-05/0.4704, allocations: 4 kB / 480.8 MB, free: 0.9492 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007575/0.4712, allocations: 0.4917 MB / 481.3 MB, free: 420 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.4712, allocations: 8.031 kB / 481.3 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.4714, allocations: 35.56 kB / 481.4 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.4718, allocations: 251.5 kB / 481.6 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.4718, allocations: 16 kB / 481.6 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.4719, allocations: 16 kB / 481.7 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.4722, allocations: 157.5 kB / 481.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4723, allocations: 0 / 481.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.4723, allocations: 8 kB / 481.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.4723, allocations: 11.89 kB / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002327/0.4725, allocations: 120 kB / 481.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008744/0.4734, allocations: 0.5704 MB / 482.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.4737, allocations: 162.5 kB / 482.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.4739, allocations: 89.17 kB / 482.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4739, allocations: 7.953 kB / 482.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.4741, allocations: 107.9 kB / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.974e-06/0.4741, allocations: 4 kB / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003716/0.4745, allocations: 192 kB / 483.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.4745, allocations: 51.41 kB / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/0.4748, allocations: 228.9 kB / 483.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.4748, allocations: 29.69 kB / 483.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.4749, allocations: 148.3 kB / 483.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.363e-05/0.475, allocations: 63.05 kB / 483.6 MB, free: 14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-06/0.475, allocations: 4 kB / 483.6 MB, free: 14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4751, allocations: 338.8 kB / 483.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.921e-05/0.4752, allocations: 48 kB / 484 MB, free: 13.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.4754, allocations: 83.55 kB / 484 MB, free: 13.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.4755, allocations: 67.86 kB / 484.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.4755, allocations: 3.938 kB / 484.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003043/0.4758, allocations: 211.8 kB / 484.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.4758, allocations: 11.94 kB / 484.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.4758, allocations: 7.984 kB / 484.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.4759, allocations: 0 / 484.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.4761, allocations: 51.91 kB / 484.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.4761, allocations: 0 / 484.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.4763, allocations: 23.83 kB / 484.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.4763, allocations: 8.094 kB / 484.4 MB, free: 13.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.198e-05/0.4764, allocations: 125.7 kB / 484.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.126e-05/0.4764, allocations: 19.72 kB / 484.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003608/0.4768, allocations: 218.8 kB / 484.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.4768, allocations: 0 / 484.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4768, allocations: 4 kB / 484.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4768, allocations: 0 / 484.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.4771, allocations: 301.3 kB / 485.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4771, allocations: 3.953 kB / 485.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.4773, allocations: 43.92 kB / 485.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.4773, allocations: 4 kB / 485.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.4774, allocations: 0 / 485.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4774, allocations: 4 kB / 485.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4774, allocations: 0 / 485.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004341/0.4778, allocations: 288.7 kB / 485.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.37e-05/0.4779, allocations: 108.8 kB / 485.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.4779, allocations: 7.984 kB / 485.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-05/0.478, allocations: 8.062 kB / 485.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.4781, allocations: 15.98 kB / 485.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.4781, allocations: 4 kB / 485.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001763/0.4783, allocations: 189.4 kB / 485.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4783, allocations: 0 / 485.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003116/0.4786, allocations: 75.86 kB / 485.8 MB, free: 11.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00088/0.4795, allocations: 379.7 kB / 486.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002606/0.4798, allocations: 139.9 kB / 486.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4798, allocations: 0 / 486.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.4799, allocations: 91.8 kB / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.4803, allocations: 43.91 kB / 486.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008/0.4811, allocations: 426.8 kB / 486.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.4814, allocations: 0.7558 MB / 487.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000106/0.4815, allocations: 30.06 kB / 487.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.223e-05/0.4816, allocations: 31.42 kB / 487.7 MB, free: 9.832 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4816, allocations: 0 / 487.7 MB, free: 9.832 MB / 362.7 MB Notification: Performance of Templates: time 0.005879/0.4875, allocations: 2.61 MB / 490.3 MB, free: 7.238 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches