Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") [: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.001214/0.001214, allocations: 182.6 kB / 8.134 MB, free: 2.207 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.361/1.361, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.00108/0.00108, allocations: 97.09 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.248e-06/9.268e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3049, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.193/1.498, allocations: 0.5416 GB / 0.9194 GB, free: 64.62 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/1.498, allocations: 80.8 kB / 0.9195 GB, free: 64.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.4052/1.903, allocations: 113.9 MB / 1.031 GB, free: 133.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/1.904, allocations: 0 / 1.031 GB, free: 133.1 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001279/1.905, allocations: 0.5539 MB / 1.031 GB, free: 132.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.905, allocations: 12.03 kB / 1.031 GB, free: 132.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/1.905, allocations: 4 kB / 1.031 GB, free: 132.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/1.905, allocations: 190.6 kB / 1.031 GB, free: 132.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/1.905, allocations: 0 / 1.031 GB, free: 132.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/1.905, allocations: 4 kB / 1.031 GB, free: 132.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.506e-05/1.905, allocations: 12 kB / 1.031 GB, free: 132.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/1.905, allocations: 63.91 kB / 1.032 GB, free: 132.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/1.906, allocations: 7.688 kB / 1.032 GB, free: 132.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/1.906, allocations: 0 / 1.032 GB, free: 132.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/1.906, allocations: 3.906 kB / 1.032 GB, free: 132.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001894/1.906, allocations: 150.6 kB / 1.032 GB, free: 132 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/1.906, allocations: 72.95 kB / 1.032 GB, free: 131.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.879e-05/1.906, allocations: 25.58 kB / 1.032 GB, free: 131.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07497/1.981, allocations: 36.1 MB / 1.067 GB, free: 95.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/1.981, allocations: 34.55 kB / 1.067 GB, free: 95.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 3.486e-06/1.981, allocations: 0 / 1.067 GB, free: 95.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.001186/1.982, allocations: 153.5 kB / 1.067 GB, free: 95.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/1.982, allocations: 81.11 kB / 1.067 GB, free: 95.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.432e-05/1.982, allocations: 108.9 kB / 1.067 GB, free: 95.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/1.982, allocations: 25.7 kB / 1.067 GB, free: 95.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.413e-05/1.982, allocations: 88.14 kB / 1.068 GB, free: 95.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.423e-05/1.983, allocations: 23.64 kB / 1.068 GB, free: 95.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/1.983, allocations: 0 / 1.068 GB, free: 95.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/1.983, allocations: 314.8 kB / 1.068 GB, free: 94.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.144e-05/1.983, allocations: 8 kB / 1.068 GB, free: 94.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.688e-05/1.983, allocations: 22.28 kB / 1.068 GB, free: 94.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/1.983, allocations: 103.8 kB / 1.068 GB, free: 94.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/1.983, allocations: 4 kB / 1.068 GB, free: 94.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000856/1.984, allocations: 165.2 kB / 1.068 GB, free: 94.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/1.984, allocations: 4 kB / 1.068 GB, free: 94.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/1.984, allocations: 320 / 1.068 GB, free: 94.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/1.984, allocations: 4 kB / 1.068 GB, free: 94.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.511e-05/1.984, allocations: 12.86 kB / 1.068 GB, free: 94.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/1.984, allocations: 0 / 1.068 GB, free: 94.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.842e-05/1.984, allocations: 0 / 1.068 GB, free: 94.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/1.985, allocations: 7.984 kB / 1.068 GB, free: 94.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.909e-05/1.985, allocations: 104.9 kB / 1.068 GB, free: 94.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.176e-05/1.985, allocations: 19.98 kB / 1.068 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009394/1.986, allocations: 201.3 kB / 1.068 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/1.986, allocations: 4 kB / 1.068 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.986, allocations: 1.25 kB / 1.068 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.986, allocations: 4 kB / 1.068 GB, free: 94.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/1.986, allocations: 142.2 kB / 1.069 GB, free: 94.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/1.986, allocations: 3.938 kB / 1.069 GB, free: 94.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-05/1.986, allocations: 15.89 kB / 1.069 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/1.986, allocations: 0 / 1.069 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/1.986, allocations: 4 kB / 1.069 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.986, allocations: 0 / 1.069 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.986, allocations: 3.938 kB / 1.069 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008786/1.987, allocations: 204.2 kB / 1.069 GB, free: 93.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/1.987, allocations: 93 kB / 1.069 GB, free: 93.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/1.987, allocations: 0 / 1.069 GB, free: 93.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.007e-05/1.987, allocations: 8.672 kB / 1.069 GB, free: 93.73 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/1.987, allocations: 0 / 1.069 GB, free: 93.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/1.987, allocations: 11.98 kB / 1.069 GB, free: 93.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.592e-05/1.987, allocations: 99.17 kB / 1.069 GB, free: 93.63 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00103/1.988, allocations: 331.5 kB / 1.069 GB, free: 93.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.001688/1.99, allocations: 0.8026 MB / 1.07 GB, free: 92.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 9.957e-05/1.99, allocations: 27.98 kB / 1.07 GB, free: 92.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.99, allocations: 0 / 1.07 GB, free: 92.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 2.863e-05/1.99, allocations: 15.94 kB / 1.07 GB, free: 92.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001639/1.99, allocations: 23.89 kB / 1.07 GB, free: 92.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002971/1.99, allocations: 88.56 kB / 1.07 GB, free: 92.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/1.991, allocations: 0.7204 MB / 1.071 GB, free: 91.63 MB / 442.7 MB Notification: Performance of SimCode: time 2.9e-07/1.991, allocations: 3.938 kB / 1.071 GB, free: 91.62 MB / 442.7 MB Notification: Performance of Templates: time 0.0109/2.002, allocations: 8.625 MB / 1.079 GB, free: 83.04 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_T/Inverse_sh_T.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches