Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") [: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.001356/0.001357, allocations: 189.2 kB / 8.141 MB, free: 2.211 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.425/1.425, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.001065/0.001065, allocations: 94.39 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.823e-06/6.853e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2548, allocations: 50.4 MB / 386.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12/12.25, allocations: 6.136 GB / 6.514 GB, free: 90.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/12.25, allocations: 77.7 kB / 6.514 GB, free: 90.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.6288/12.88, allocations: 189.5 MB / 6.699 GB, free: 72.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/12.88, allocations: 0 / 6.699 GB, free: 72.76 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.004364/12.89, allocations: 1.086 MB / 6.7 GB, free: 71.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/12.89, allocations: 8.031 kB / 6.7 GB, free: 71.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/12.89, allocations: 7.906 kB / 6.7 GB, free: 71.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/12.89, allocations: 197.6 kB / 6.701 GB, free: 71.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/12.89, allocations: 4 kB / 6.701 GB, free: 71.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/12.89, allocations: 0 / 6.701 GB, free: 71.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.539e-05/12.89, allocations: 30.8 kB / 6.701 GB, free: 71.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/12.89, allocations: 66.64 kB / 6.701 GB, free: 71.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/12.89, allocations: 0 / 6.701 GB, free: 71.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/12.89, allocations: 0 / 6.701 GB, free: 71.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/12.89, allocations: 3.906 kB / 6.701 GB, free: 71.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/12.89, allocations: 168.9 kB / 6.701 GB, free: 71.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/12.89, allocations: 92.05 kB / 6.701 GB, free: 71.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.303e-05/12.89, allocations: 29.48 kB / 6.701 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.965e-05/12.89, allocations: 15.56 kB / 6.701 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/12.89, allocations: 34.5 kB / 6.701 GB, free: 71.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/12.89, allocations: 0 / 6.701 GB, free: 71.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007797/12.89, allocations: 177.6 kB / 6.701 GB, free: 70.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.144e-05/12.89, allocations: 80.95 kB / 6.701 GB, free: 70.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/12.89, allocations: 129 kB / 6.701 GB, free: 70.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/12.89, allocations: 25.7 kB / 6.701 GB, free: 70.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.423e-05/12.89, allocations: 80.14 kB / 6.701 GB, free: 70.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/12.89, allocations: 27.45 kB / 6.701 GB, free: 70.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/12.89, allocations: 0 / 6.701 GB, free: 70.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/12.89, allocations: 318.8 kB / 6.702 GB, free: 70.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.28e-05/12.89, allocations: 19.47 kB / 6.702 GB, free: 70.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.408e-05/12.89, allocations: 29.56 kB / 6.702 GB, free: 70.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005252/12.89, allocations: 110.9 kB / 6.702 GB, free: 70.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/12.89, allocations: 0 / 6.702 GB, free: 70.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0005997/12.89, allocations: 174 kB / 6.702 GB, free: 69.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/12.89, allocations: 4 kB / 6.702 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/12.89, allocations: 0 / 6.702 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/12.89, allocations: 0 / 6.702 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/12.89, allocations: 19.64 kB / 6.702 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/12.89, allocations: 4 kB / 6.702 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.823e-05/12.89, allocations: 0 / 6.702 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/12.89, allocations: 4 kB / 6.702 GB, free: 69.94 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.892e-05/12.89, allocations: 108.6 kB / 6.702 GB, free: 69.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/12.89, allocations: 7.906 kB / 6.702 GB, free: 69.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006817/12.89, allocations: 203 kB / 6.702 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/12.89, allocations: 0 / 6.702 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/12.89, allocations: 3.5 kB / 6.702 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/12.89, allocations: 4 kB / 6.702 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/12.89, allocations: 157.3 kB / 6.703 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/12.89, allocations: 0 / 6.703 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.66e-05/12.89, allocations: 11.89 kB / 6.703 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/12.89, allocations: 4 kB / 6.703 GB, free: 69.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/12.89, allocations: 0 / 6.703 GB, free: 69.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/12.89, allocations: 0 / 6.703 GB, free: 69.47 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/12.89, allocations: 0 / 6.703 GB, free: 69.47 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006135/12.89, allocations: 225.9 kB / 6.703 GB, free: 69.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-05/12.89, allocations: 100.9 kB / 6.703 GB, free: 69.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/12.89, allocations: 4 kB / 6.703 GB, free: 69.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/12.89, allocations: 0 / 6.703 GB, free: 69.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/12.89, allocations: 11.78 kB / 6.703 GB, free: 69.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/12.89, allocations: 7.938 kB / 6.703 GB, free: 69.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.795e-05/12.89, allocations: 107.1 kB / 6.703 GB, free: 69.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004014/12.89, allocations: 0.985 MB / 6.704 GB, free: 68.09 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.007276/12.9, allocations: 1.577 MB / 6.706 GB, free: 66.78 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001348/12.9, allocations: 43.73 kB / 6.706 GB, free: 66.74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/12.9, allocations: 0 / 6.706 GB, free: 66.74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/12.9, allocations: 23.73 kB / 6.706 GB, free: 66.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/12.9, allocations: 21.53 kB / 6.706 GB, free: 66.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/12.9, allocations: 106.2 kB / 6.706 GB, free: 66.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/12.9, allocations: 0.7053 MB / 6.706 GB, free: 65.88 MB / 442.7 MB Notification: Performance of SimCode: time 3.41e-07/12.9, allocations: 3.938 kB / 6.706 GB, free: 65.88 MB / 442.7 MB Notification: Performance of Templates: time 0.03454/12.94, allocations: 27.58 MB / 6.733 GB, free: 47.08 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches