Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001741/0.001741, allocations: 176.2 kB / 8.151 MB, free: 2.215 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.728/1.728, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001858/0.001858, allocations: 94.08 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.378e-06/9.649e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2836, allocations: 47.56 MB / 361.8 MB, free: 45.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1192/0.4029, allocations: 78.66 MB / 440.5 MB, free: 7.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.4032, allocations: 76.47 kB / 440.6 MB, free: 7.332 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02509/0.4283, allocations: 5.434 MB / 446 MB, free: 1.969 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.4284, allocations: 4 kB / 446 MB, free: 1.965 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0009373/0.4293, allocations: 0.4908 MB / 446.5 MB, free: 1.426 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4294, allocations: 8.031 kB / 446.5 MB, free: 1.418 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002154/0.4296, allocations: 32.66 kB / 446.5 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005681/0.4302, allocations: 255.5 kB / 446.8 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.4302, allocations: 12 kB / 446.8 MB, free: 1.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.76e-05/0.4303, allocations: 8 kB / 446.8 MB, free: 1.074 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004102/0.4307, allocations: 108 kB / 446.9 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.4311, allocations: 137.5 kB / 447 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4312, allocations: 4 kB / 447 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.4312, allocations: 0 / 447 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4312, allocations: 4.219 kB / 447.1 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.4326, allocations: 0.5356 MB / 447.6 MB, free: 248 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.4329, allocations: 102.5 kB / 447.7 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.4331, allocations: 84.16 kB / 447.8 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.4331, allocations: 4 kB / 447.8 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.4334, allocations: 103.4 kB / 447.9 MB, free: 15.94 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 2.564e-06/0.4334, allocations: 0 / 447.9 MB, free: 15.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005458/0.434, allocations: 157.7 kB / 448 MB, free: 15.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.434, allocations: 51.41 kB / 448.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00036/0.4344, allocations: 216.3 kB / 448.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.4345, allocations: 29.7 kB / 448.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.4346, allocations: 182.6 kB / 448.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.469e-05/0.4347, allocations: 66.95 kB / 448.6 MB, free: 15.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.4347, allocations: 0 / 448.6 MB, free: 15.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.4348, allocations: 322.8 kB / 448.9 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.435, allocations: 43.98 kB / 448.9 MB, free: 14.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.4352, allocations: 84.05 kB / 449 MB, free: 14.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.4354, allocations: 56.92 kB / 449.1 MB, free: 14.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4354, allocations: 0 / 449.1 MB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004883/0.4359, allocations: 176 kB / 449.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.436, allocations: 11.98 kB / 449.2 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.436, allocations: 0 / 449.2 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.436, allocations: 0 / 449.2 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004303/0.4365, allocations: 56 kB / 449.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.4365, allocations: 0 / 449.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.4367, allocations: 17.64 kB / 449.3 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.4367, allocations: 8 kB / 449.3 MB, free: 14.43 MB / 346.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 8.887e-05/0.4368, allocations: 37.58 kB / 449.4 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/0.4369, allocations: 19.72 kB / 449.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005792/0.4375, allocations: 189.1 kB / 449.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.4375, allocations: 0 / 449.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4375, allocations: 4 kB / 449.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4375, allocations: 0 / 449.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004457/0.438, allocations: 255.6 kB / 449.8 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.438, allocations: 4.438 kB / 449.8 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003953/0.4384, allocations: 43.92 kB / 449.9 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.4384, allocations: 0 / 449.9 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.4385, allocations: 7.984 kB / 449.9 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.4385, allocations: 4 kB / 449.9 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4385, allocations: 0 / 449.9 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006971/0.4392, allocations: 271.2 kB / 450.1 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.4394, allocations: 108.8 kB / 450.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/0.4394, allocations: 4 kB / 450.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.4396, allocations: 11.94 kB / 450.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.4397, allocations: 16.16 kB / 450.3 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.4397, allocations: 4 kB / 450.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002551/0.44, allocations: 174.5 kB / 450.5 MB, free: 13.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003922/0.4404, allocations: 67.83 kB / 450.5 MB, free: 13.16 MB / 346.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.0008635/0.4413, allocations: 306.4 kB / 450.8 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004708/0.4418, allocations: 143.8 kB / 451 MB, free: 12.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4418, allocations: 0 / 451 MB, free: 12.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.442, allocations: 75.92 kB / 451 MB, free: 12.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004652/0.4425, allocations: 32.08 kB / 451.1 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.4439, allocations: 446.4 kB / 451.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005337/0.4444, allocations: 0.7823 MB / 452.3 MB, free: 11.39 MB / 346.7 MB Notification: Performance of SimCode: time 1.133e-06/0.4444, allocations: 0 / 452.3 MB, free: 11.39 MB / 346.7 MB Notification: Performance of Templates: time 0.00816/0.4526, allocations: 3.111 MB / 455.4 MB, free: 8.289 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches