Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002507/0.002507, allocations: 184.8 kB / 8.158 MB, free: 2.199 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.86/1.86, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001236/0.001236, allocations: 89.16 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.139e-05/1.154e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.319, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1713/0.4903, allocations: 74.84 MB / 436.7 MB, free: 11.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/0.4908, allocations: 66.94 kB / 436.7 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01028/0.5011, allocations: 1.474 MB / 438.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.5011, allocations: 2.625 kB / 438.2 MB, free: 9.727 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007009/0.5019, allocations: 366.4 kB / 438.6 MB, free: 9.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/0.502, allocations: 8.531 kB / 438.6 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002572/0.5022, allocations: 10.25 kB / 438.6 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.5025, allocations: 174.9 kB / 438.8 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.5025, allocations: 4 kB / 438.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.5026, allocations: 11.89 kB / 438.8 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002891/0.5029, allocations: 47 kB / 438.8 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.5032, allocations: 70.67 kB / 438.9 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.5032, allocations: 0 / 438.9 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.5033, allocations: 0 / 438.9 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.5033, allocations: 4.75 kB / 438.9 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.5045, allocations: 369 kB / 439.2 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.5048, allocations: 53.64 kB / 439.3 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.5049, allocations: 28.86 kB / 439.3 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.505, allocations: 0 / 439.3 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/0.505, allocations: 38.56 kB / 439.4 MB, free: 8.434 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 3.697e-06/0.5051, allocations: 4 kB / 439.4 MB, free: 8.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.000342/0.5054, allocations: 62.38 kB / 439.4 MB, free: 8.363 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.5055, allocations: 55.41 kB / 439.5 MB, free: 8.297 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.5057, allocations: 96.98 kB / 439.6 MB, free: 8.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.5057, allocations: 25.7 kB / 439.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.5059, allocations: 166.3 kB / 439.8 MB, free: 8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.5059, allocations: 31.55 kB / 439.8 MB, free: 7.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.248e-06/0.506, allocations: 0 / 439.8 MB, free: 7.969 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.5062, allocations: 322.8 kB / 440.1 MB, free: 7.645 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-05/0.5063, allocations: 20 kB / 440.1 MB, free: 7.625 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.5064, allocations: 42.5 kB / 440.2 MB, free: 7.574 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.5066, allocations: 28.55 kB / 440.2 MB, free: 7.547 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.5066, allocations: 0 / 440.2 MB, free: 7.547 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003665/0.507, allocations: 89.56 kB / 440.3 MB, free: 7.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.507, allocations: 15.03 kB / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.5071, allocations: 0 / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.5071, allocations: 0 / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003558/0.5075, allocations: 27.17 kB / 440.3 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.5075, allocations: 7.906 kB / 440.3 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.5077, allocations: 0 / 440.3 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.5078, allocations: 4 kB / 440.3 MB, free: 7.406 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 (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 9.974e-05/0.5079, allocations: 37.58 kB / 440.4 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.972e-05/0.508, allocations: 11.91 kB / 440.4 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.508, allocations: 4.375 kB / 440.4 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.5081, allocations: 4 kB / 440.4 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5081, allocations: 0 / 440.4 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.5081, allocations: 3.984 kB / 440.4 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.5085, allocations: 165.8 kB / 440.6 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.5085, allocations: 0 / 440.6 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.5089, allocations: 19.98 kB / 440.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.5089, allocations: 0 / 440.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.5089, allocations: 4 kB / 440.6 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.509, allocations: 3.906 kB / 440.6 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.509, allocations: 4 kB / 440.6 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000438/0.5095, allocations: 183.9 kB / 440.8 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.5095, allocations: 81.11 kB / 440.9 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.5096, allocations: 3.906 kB / 440.9 MB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.5098, allocations: 3.984 kB / 440.9 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.33e-05/0.5098, allocations: 4 kB / 440.9 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.5099, allocations: 0 / 440.9 MB, free: 6.812 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.506e-05/0.51, allocations: 91.28 kB / 441 MB, free: 6.723 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004917/0.5105, allocations: 23.94 kB / 441 MB, free: 6.699 MB / 330.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 0.0002261/0.5107, allocations: 99.23 kB / 441.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002603/0.511, allocations: 51.22 kB / 441.1 MB, free: 6.543 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.511, allocations: 0 / 441.1 MB, free: 6.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.975e-05/0.5111, allocations: 20 kB / 441.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.5115, allocations: 8.031 kB / 441.2 MB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.5126, allocations: 261.4 kB / 441.4 MB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004542/0.5131, allocations: 0.7153 MB / 442.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5131, allocations: 0 / 442.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of Templates: time 0.00469/0.5178, allocations: 0.9452 MB / 443.1 MB, free: 4.566 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches