Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002658/0.002663, allocations: 175.5 kB / 8.152 MB, free: 2.195 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.784/1.784, allocations: 205.2 MB / 213.7 MB, free: 13.95 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.001335/0.001334, allocations: 90.66 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.307e-05/1.315e-05, allocations: 4 kB / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.273, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.521/1.794, allocations: 0.6435 GB / 0.9969 GB, free: 114.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/1.794, allocations: 75.28 kB / 0.997 GB, free: 114.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.2891/2.083, allocations: 113.5 MB / 1.108 GB, free: 45.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/2.084, allocations: 4 kB / 1.108 GB, free: 45.13 MB / 426.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.001437/2.085, allocations: 0.563 MB / 1.108 GB, free: 44.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/2.085, allocations: 8.031 kB / 1.108 GB, free: 44.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/2.085, allocations: 11.91 kB / 1.108 GB, free: 44.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/2.085, allocations: 185 kB / 1.109 GB, free: 44.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/2.085, allocations: 4 kB / 1.109 GB, free: 44.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/2.085, allocations: 4 kB / 1.109 GB, free: 44.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.729e-05/2.086, allocations: 19.98 kB / 1.109 GB, free: 44.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/2.086, allocations: 51.41 kB / 1.109 GB, free: 44.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/2.086, allocations: 3.906 kB / 1.109 GB, free: 44.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/2.086, allocations: 4 kB / 1.109 GB, free: 44.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/2.086, allocations: 0 / 1.109 GB, free: 44.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001831/2.086, allocations: 159 kB / 1.109 GB, free: 44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/2.086, allocations: 73.38 kB / 1.109 GB, free: 43.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.087e-05/2.086, allocations: 17.72 kB / 1.109 GB, free: 43.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1463/2.233, allocations: 36.1 MB / 1.144 GB, free: 4.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/2.233, allocations: 34.56 kB / 1.144 GB, free: 4.297 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 3.417e-06/2.233, allocations: 0 / 1.144 GB, free: 4.297 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.001666/2.234, allocations: 153.5 kB / 1.144 GB, free: 4.141 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/2.235, allocations: 89.03 kB / 1.144 GB, free: 4.035 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/2.235, allocations: 105 kB / 1.145 GB, free: 3.926 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/2.235, allocations: 29.7 kB / 1.145 GB, free: 3.891 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.781e-05/2.235, allocations: 150.6 kB / 1.145 GB, free: 3.742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/2.235, allocations: 19.7 kB / 1.145 GB, free: 3.723 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-06/2.235, allocations: 0 / 1.145 GB, free: 3.723 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.098e-05/2.235, allocations: 314.8 kB / 1.145 GB, free: 3.406 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.606e-05/2.235, allocations: 8 kB / 1.145 GB, free: 3.398 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.478e-05/2.235, allocations: 21.72 kB / 1.145 GB, free: 3.371 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/2.236, allocations: 108 kB / 1.145 GB, free: 3.266 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/2.236, allocations: 0 / 1.145 GB, free: 3.266 MB / 426.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.001332/2.238, allocations: 157.4 kB / 1.145 GB, free: 3.105 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/2.238, allocations: 6.969 kB / 1.145 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/2.238, allocations: 0 / 1.145 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/2.238, allocations: 4 kB / 1.145 GB, free: 3.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/2.238, allocations: 8 kB / 1.145 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/2.238, allocations: 0 / 1.145 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.422e-05/2.238, allocations: 3.938 kB / 1.145 GB, free: 3.086 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/2.238, allocations: 11.98 kB / 1.145 GB, free: 3.074 MB / 426.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 6.172e-05/2.238, allocations: 25.7 kB / 1.145 GB, free: 3.043 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/2.238, allocations: 11.91 kB / 1.145 GB, free: 3.031 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/2.24, allocations: 205.6 kB / 1.146 GB, free: 2.824 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/2.24, allocations: 3.906 kB / 1.146 GB, free: 2.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/2.24, allocations: 7.984 kB / 1.146 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/2.24, allocations: 0 / 1.146 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/2.24, allocations: 146.2 kB / 1.146 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/2.24, allocations: 0 / 1.146 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/2.24, allocations: 11.98 kB / 1.146 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/2.24, allocations: 0 / 1.146 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/2.24, allocations: 4 kB / 1.146 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/2.24, allocations: 15.83 kB / 1.146 GB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/2.24, allocations: 0 / 1.146 GB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00149/2.242, allocations: 207.6 kB / 1.146 GB, free: 2.371 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.401e-05/2.242, allocations: 93.08 kB / 1.146 GB, free: 2.262 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/2.242, allocations: 3.906 kB / 1.146 GB, free: 2.258 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/2.242, allocations: 4 kB / 1.146 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/2.242, allocations: 11.98 kB / 1.146 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/2.242, allocations: 0 / 1.146 GB, free: 2.242 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.273e-05/2.242, allocations: 87.28 kB / 1.146 GB, free: 2.156 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001485/2.244, allocations: 339.5 kB / 1.146 GB, free: 1.824 MB / 426.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.003392/2.247, allocations: 0.7981 MB / 1.147 GB, free: 1.016 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001956/2.247, allocations: 28 kB / 1.147 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/2.247, allocations: 0 / 1.147 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.502e-05/2.247, allocations: 23.92 kB / 1.147 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/2.248, allocations: 7.938 kB / 1.147 GB, free: 0.957 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004488/2.248, allocations: 116.8 kB / 1.147 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/2.248, allocations: 0.7188 MB / 1.148 GB, free: 76 kB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/2.248, allocations: 4 kB / 1.148 GB, free: 72 kB / 426.7 MB Notification: Performance of Templates: time 0.1603/2.409, allocations: 6.789 MB / 1.155 GB, free: 176.1 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/Inverse_sh_T/Inverse_sh_T.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches