Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [: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 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 184.6 kB / 8.138 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0008799/0.0008799, allocations: 100.8 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.31e-06/5.35e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2081, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08046/0.2886, allocations: 75.7 MB / 462.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.2889, allocations: 75.89 kB / 462.7 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004458/0.2934, allocations: 1.457 MB / 464.1 MB, free: 9.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2934, allocations: 4 kB / 464.1 MB, free: 9.625 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003057/0.2937, allocations: 362.2 kB / 464.5 MB, free: 9.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.2937, allocations: 12.03 kB / 464.5 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.2938, allocations: 13.97 kB / 464.5 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.294, allocations: 171 kB / 464.7 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.294, allocations: 0 / 464.7 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.803e-05/0.294, allocations: 11.91 kB / 464.7 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001262/0.2941, allocations: 47.98 kB / 464.7 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.2943, allocations: 72.38 kB / 464.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.2943, allocations: 0 / 464.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2943, allocations: 0 / 464.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2943, allocations: 0 / 464.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005379/0.2948, allocations: 369.7 kB / 465.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.963e-05/0.2949, allocations: 49.72 kB / 465.2 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.153e-05/0.295, allocations: 28.86 kB / 465.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.295, allocations: 0 / 465.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.295, allocations: 38.72 kB / 465.3 MB, free: 8.332 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.295, allocations: 0 / 465.3 MB, free: 8.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001589/0.2952, allocations: 69.58 kB / 465.3 MB, free: 8.258 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.2952, allocations: 55.34 kB / 465.4 MB, free: 8.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.908e-05/0.2953, allocations: 103 kB / 465.5 MB, free: 8.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.2953, allocations: 25.7 kB / 465.5 MB, free: 8.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.2954, allocations: 99.88 kB / 465.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.2954, allocations: 27.56 kB / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.2954, allocations: 4 kB / 465.7 MB, free: 7.922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.421e-05/0.2955, allocations: 318.8 kB / 466 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.732e-05/0.2955, allocations: 20 kB / 466 MB, free: 7.582 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.062e-05/0.2956, allocations: 36.7 kB / 466 MB, free: 7.539 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.702e-05/0.2957, allocations: 33.36 kB / 466.1 MB, free: 7.508 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2957, allocations: 0.5625 kB / 466.1 MB, free: 7.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001316/0.2958, allocations: 93.62 kB / 466.1 MB, free: 7.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.2958, allocations: 8 kB / 466.2 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.2958, allocations: 0 / 466.2 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.2958, allocations: 3.906 kB / 466.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.296, allocations: 23.98 kB / 466.2 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.296, allocations: 1.125 kB / 466.2 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.482e-05/0.296, allocations: 11.88 kB / 466.2 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.2961, allocations: 8 kB / 466.2 MB, free: 7.355 MB / 346.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 (13): * Single equations (assignments): 13 * 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 6.051e-05/0.2961, allocations: 112.9 kB / 466.3 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.2962, allocations: 4 kB / 466.3 MB, free: 7.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.2962, allocations: 12.28 kB / 466.3 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2962, allocations: 4 kB / 466.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.2962, allocations: 1.75 kB / 466.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2962, allocations: 0 / 466.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.2964, allocations: 150.2 kB / 466.5 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2964, allocations: 0 / 466.5 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.2965, allocations: 19.98 kB / 466.5 MB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2965, allocations: 8.406 kB / 466.5 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.2965, allocations: 8 kB / 466.5 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2965, allocations: 0 / 466.5 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.2965, allocations: 0 / 466.5 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001678/0.2967, allocations: 191.3 kB / 466.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.295e-05/0.2967, allocations: 89 kB / 466.8 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.2968, allocations: 0 / 466.8 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.844e-05/0.2968, allocations: 0.75 kB / 466.8 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.2969, allocations: 8.062 kB / 466.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2969, allocations: 0 / 466.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.79e-05/0.2969, allocations: 88.95 kB / 466.9 MB, free: 6.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000255/0.2972, allocations: 31.84 kB / 466.9 MB, free: 6.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 9.223e-05/0.2973, allocations: 95.25 kB / 467 MB, free: 6.469 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.2974, allocations: 48.78 kB / 467.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2974, allocations: 0 / 467.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.171e-05/0.2974, allocations: 28.06 kB / 467.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.2976, allocations: 11.98 kB / 467.1 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004339/0.2981, allocations: 224.5 kB / 467.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.2983, allocations: 0.7075 MB / 468 MB, free: 5.41 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2983, allocations: 0 / 468 MB, free: 5.41 MB / 346.7 MB Notification: Performance of Templates: time 0.002287/0.3006, allocations: 0.6749 MB / 468.7 MB, free: 4.758 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches