Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.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.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor") translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor") [: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.002459/0.002458, allocations: 177 kB / 8.148 MB, free: 2.211 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.777/1.777, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.00125/0.00125, allocations: 87.22 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.807e-06/8.957e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2351, allocations: 47.56 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.3524, allocations: 76.41 MB / 438.2 MB, free: 9.652 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.3528, allocations: 72.45 kB / 438.3 MB, free: 9.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01153/0.3643, allocations: 2.428 MB / 440.7 MB, free: 7.188 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.3644, allocations: 1.781 kB / 440.7 MB, free: 7.188 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006251/0.365, allocations: 410.3 kB / 441.2 MB, free: 6.738 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3651, allocations: 8.031 kB / 441.2 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3652, allocations: 15.81 kB / 441.2 MB, free: 6.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.3655, allocations: 202.2 kB / 441.4 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.3656, allocations: 4 kB / 441.4 MB, free: 6.477 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.104e-05/0.3656, allocations: 11.98 kB / 441.4 MB, free: 6.465 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002439/0.3659, allocations: 60.47 kB / 441.4 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.3662, allocations: 95.25 kB / 441.5 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.3662, allocations: 4 kB / 441.5 MB, free: 6.305 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.3662, allocations: 3.984 kB / 441.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.3662, allocations: 0 / 441.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.3674, allocations: 0.5708 MB / 442.1 MB, free: 5.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.3679, allocations: 70.64 kB / 442.2 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.187e-05/0.368, allocations: 36.91 kB / 442.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.368, allocations: 0 / 442.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.3681, allocations: 34.56 kB / 442.3 MB, free: 5.504 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.934e-06/0.3681, allocations: 0 / 442.3 MB, free: 5.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004704/0.3686, allocations: 102.3 kB / 442.4 MB, free: 5.395 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.3686, allocations: 54.88 kB / 442.4 MB, free: 5.332 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.3688, allocations: 128.8 kB / 442.5 MB, free: 5.199 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.3688, allocations: 29.7 kB / 442.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.562e-05/0.3689, allocations: 186.3 kB / 442.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.3689, allocations: 19.8 kB / 442.8 MB, free: 4.957 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.369, allocations: 0 / 442.8 MB, free: 4.957 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3691, allocations: 310.8 kB / 443.1 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.187e-05/0.3692, allocations: 16 kB / 443.1 MB, free: 4.629 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.3693, allocations: 38.52 kB / 443.1 MB, free: 4.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.683e-05/0.3694, allocations: 24.77 kB / 443.1 MB, free: 4.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-06/0.3694, allocations: 7.906 kB / 443.2 MB, free: 4.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004179/0.3698, allocations: 102.5 kB / 443.3 MB, free: 4.441 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3698, allocations: 4 kB / 443.3 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3699, allocations: 9.625 kB / 443.3 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.3701, allocations: 32.75 kB / 443.3 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3703, allocations: 16.06 kB / 443.3 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00189/0.3722, allocations: 1.452 MB / 444.8 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3723, allocations: 4 kB / 444.8 MB, free: 2.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.3724, allocations: 0 / 444.8 MB, free: 2.801 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 3} Notification: Performance of prepare postOptimizeDAE: time 8.358e-05/0.3725, allocations: 37.67 kB / 444.8 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.797e-05/0.3725, allocations: 7.906 kB / 444.8 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.109e-05/0.3726, allocations: 16.55 kB / 444.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3726, allocations: 0 / 444.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.3726, allocations: 0 / 444.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3726, allocations: 0 / 444.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.3729, allocations: 178.1 kB / 445 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3729, allocations: 0 / 445 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.373, allocations: 7.984 kB / 445 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000225/0.3732, allocations: 36.84 kB / 445.1 MB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3732, allocations: 0 / 445.1 MB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001758/0.375, allocations: 1.443 MB / 446.5 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3751, allocations: 0 / 446.5 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004014/0.3755, allocations: 198.7 kB / 446.7 MB, free: 0.707 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.662e-05/0.3755, allocations: 85 kB / 446.8 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.3756, allocations: 64 / 446.8 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.3758, allocations: 12 kB / 446.8 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.3758, allocations: 3.984 kB / 446.8 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.3758, allocations: 4 kB / 446.8 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001385/0.376, allocations: 107.3 kB / 446.9 MB, free: 492 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004583/0.3765, allocations: 35.84 kB / 446.9 MB, free: 456 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001416/0.3766, allocations: 103.2 kB / 447 MB, free: 344 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004377/0.3771, allocations: 152.1 kB / 447.2 MB, free: 184 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3771, allocations: 0 / 447.2 MB, free: 184 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.3773, allocations: 133.8 kB / 447.3 MB, free: 40 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.3776, allocations: 6.406 kB / 447.3 MB, free: 36 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006058/0.3783, allocations: 196 kB / 447.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.3786, allocations: 0.7224 MB / 448.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3786, allocations: 0 / 448.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of Templates: time 0.004906/0.3836, allocations: 1.905 MB / 450.1 MB, free: 13.18 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches