Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001005, allocations: 176.1 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.251/1.251, allocations: 205.2 MB / 214.1 MB, free: 5.441 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008105/0.0008109, allocations: 79.41 kB / 262.1 MB, free: 5.516 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.602e-06/6.622e-06, allocations: 0 / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08533, allocations: 47.58 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2644/0.3498, allocations: 78.66 MB / 441.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.3501, allocations: 71.92 kB / 441.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01464/0.3647, allocations: 5.423 MB / 446.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.3648, allocations: 3.906 kB / 446.7 MB, free: 10.05 MB / 314.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.0005732/0.3654, allocations: 0.4936 MB / 447.2 MB, free: 9.598 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.3654, allocations: 7.594 kB / 447.2 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.3656, allocations: 35.27 kB / 447.2 MB, free: 9.578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.3659, allocations: 255.8 kB / 447.5 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.3659, allocations: 7.562 kB / 447.5 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.366, allocations: 7.812 kB / 447.5 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002155/0.3662, allocations: 115.2 kB / 447.6 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.3664, allocations: 135.3 kB / 447.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3664, allocations: 0 / 447.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.3665, allocations: 224 / 447.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3665, allocations: 3.781 kB / 447.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.3672, allocations: 0.5467 MB / 448.3 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.3673, allocations: 93.48 kB / 448.4 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3675, allocations: 78.33 kB / 448.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.3675, allocations: 3.984 kB / 448.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001251/0.3676, allocations: 106.6 kB / 448.6 MB, free: 8.805 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.3676, allocations: 0 / 448.6 MB, free: 8.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002721/0.3679, allocations: 164.1 kB / 448.7 MB, free: 8.742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.088e-05/0.3679, allocations: 55.41 kB / 448.8 MB, free: 8.676 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.3681, allocations: 210.2 kB / 449 MB, free: 8.566 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3681, allocations: 25.7 kB / 449 MB, free: 8.535 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.412e-05/0.3682, allocations: 128.3 kB / 449.1 MB, free: 8.422 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.3682, allocations: 69.36 kB / 449.2 MB, free: 8.371 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.3682, allocations: 0 / 449.2 MB, free: 8.371 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.318e-05/0.3683, allocations: 329.9 kB / 449.5 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.551e-05/0.3684, allocations: 47.84 kB / 449.6 MB, free: 8.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.301e-05/0.3685, allocations: 82.39 kB / 449.6 MB, free: 8.012 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.791e-05/0.3686, allocations: 58.03 kB / 449.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3686, allocations: 0 / 449.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002329/0.3688, allocations: 189.8 kB / 449.9 MB, free: 7.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.3688, allocations: 9.406 kB / 449.9 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3688, allocations: 4.094 kB / 449.9 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3689, allocations: 0 / 449.9 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.3691, allocations: 57.59 kB / 450 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.3691, allocations: 7.797 kB / 450 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3692, allocations: 19.56 kB / 450 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.3692, allocations: 3.906 kB / 450 MB, free: 7.902 MB / 314.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 5.963e-05/0.3693, allocations: 116.2 kB / 450.1 MB, free: 7.789 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.955e-05/0.3693, allocations: 27.48 kB / 450.1 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.3696, allocations: 184.4 kB / 450.3 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3696, allocations: 0 / 450.3 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3696, allocations: 3.938 kB / 450.3 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3696, allocations: 7.828 kB / 450.3 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.3698, allocations: 252.9 kB / 450.6 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3698, allocations: 0 / 450.6 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.37, allocations: 41.17 kB / 450.6 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.37, allocations: 0 / 450.6 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.3701, allocations: 0 / 450.6 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3701, allocations: 11.72 kB / 450.6 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3701, allocations: 0 / 450.6 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003269/0.3704, allocations: 276.2 kB / 450.9 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/0.3705, allocations: 103.6 kB / 451 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.3705, allocations: 3.984 kB / 451 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.414e-05/0.3706, allocations: 7.844 kB / 451 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.3707, allocations: 11.89 kB / 451 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3707, allocations: 11.72 kB / 451 MB, free: 7.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001067/0.3708, allocations: 173.9 kB / 451.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002607/0.3711, allocations: 58.12 kB / 451.3 MB, free: 7.168 MB / 314.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.0005969/0.3717, allocations: 322.7 kB / 451.6 MB, free: 6.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.3719, allocations: 133.5 kB / 451.7 MB, free: 6.898 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3719, allocations: 192 / 451.7 MB, free: 6.898 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.224e-05/0.372, allocations: 79.62 kB / 451.8 MB, free: 6.891 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.3723, allocations: 33.52 kB / 451.8 MB, free: 6.879 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007199/0.373, allocations: 407.5 kB / 452.2 MB, free: 6.637 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.3732, allocations: 0.7809 MB / 453 MB, free: 5.895 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3732, allocations: 0 / 453 MB, free: 5.895 MB / 314.7 MB Notification: Performance of Templates: time 0.005124/0.3784, allocations: 2.6 MB / 455.6 MB, free: 4.594 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches