Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O") translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O") [: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.0009739/0.000974, allocations: 183.3 kB / 8.131 MB, free: 2.215 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.159/1.159, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.001074/0.001074, allocations: 100.8 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.084e-06/7.094e-06, allocations: 0 / 336.5 MB, free: 9.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2601, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7714/1.032, allocations: 442.5 MB / 0.8099 GB, free: 8.215 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/1.032, allocations: 69.34 kB / 0.81 GB, free: 8.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.2684/1.3, allocations: 24.83 MB / 0.8343 GB, free: 166.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/1.3, allocations: 0 / 0.8343 GB, free: 166.3 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008247/1.301, allocations: 441.4 kB / 0.8347 GB, free: 165.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/1.301, allocations: 8.031 kB / 0.8347 GB, free: 165.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006388/1.308, allocations: 0.5394 MB / 0.8352 GB, free: 165.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/1.308, allocations: 163 kB / 0.8354 GB, free: 165.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/1.308, allocations: 4 kB / 0.8354 GB, free: 165.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/1.308, allocations: 4 kB / 0.8354 GB, free: 165.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005098/1.308, allocations: 231.8 kB / 0.8356 GB, free: 165 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/1.309, allocations: 113.5 kB / 0.8357 GB, free: 164.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/1.309, allocations: 3.938 kB / 0.8357 GB, free: 164.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/1.309, allocations: 0 / 0.8357 GB, free: 164.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/1.309, allocations: 8 kB / 0.8357 GB, free: 164.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/1.31, allocations: 398.6 kB / 0.8361 GB, free: 164.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007569/1.311, allocations: 149.7 kB / 0.8362 GB, free: 164.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/1.311, allocations: 56.91 kB / 0.8363 GB, free: 164.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/1.311, allocations: 4 kB / 0.8363 GB, free: 164.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/1.311, allocations: 34.56 kB / 0.8363 GB, free: 164.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 1.833e-06/1.311, allocations: 0 / 0.8363 GB, free: 164.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=17): time 0.001234/1.312, allocations: 292 kB / 0.8366 GB, free: 163.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/1.312, allocations: 55.41 kB / 0.8367 GB, free: 163.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.249e-05/1.312, allocations: 96.98 kB / 0.8367 GB, free: 163.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/1.312, allocations: 29.64 kB / 0.8368 GB, free: 163.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/1.312, allocations: 95.89 kB / 0.8369 GB, free: 163.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/1.312, allocations: 55.2 kB / 0.8369 GB, free: 163.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/1.312, allocations: 0 / 0.8369 GB, free: 163.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.634e-05/1.312, allocations: 326.7 kB / 0.8372 GB, free: 163.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.625e-05/1.312, allocations: 48.38 kB / 0.8373 GB, free: 163.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/1.313, allocations: 88.84 kB / 0.8374 GB, free: 163.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/1.313, allocations: 74.56 kB / 0.8374 GB, free: 163 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/1.313, allocations: 0 / 0.8374 GB, free: 163 MB / 442.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003161/1.313, allocations: 193.4 kB / 0.8376 GB, free: 162.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/1.313, allocations: 7.938 kB / 0.8376 GB, free: 162.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/1.313, allocations: 0 / 0.8376 GB, free: 162.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/1.313, allocations: 4 kB / 0.8376 GB, free: 162.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/1.313, allocations: 56.02 kB / 0.8377 GB, free: 162.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/1.313, allocations: 4 kB / 0.8377 GB, free: 162.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/1.314, allocations: 7.984 kB / 0.8377 GB, free: 162.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/1.314, allocations: 17.86 kB / 0.8377 GB, free: 162.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.986e-05/1.314, allocations: 111.7 kB / 0.8378 GB, free: 162.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/1.314, allocations: 8.094 kB / 0.8378 GB, free: 162.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005463/1.314, allocations: 244.8 kB / 0.8381 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/1.314, allocations: 4 kB / 0.8381 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/1.314, allocations: 0 / 0.8381 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.314, allocations: 0 / 0.8381 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007886/1.315, allocations: 0.4996 MB / 0.8386 GB, free: 161.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/1.315, allocations: 4 kB / 0.8386 GB, free: 161.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/1.316, allocations: 47.89 kB / 0.8386 GB, free: 161.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/1.316, allocations: 0 / 0.8386 GB, free: 161.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.546e-05/1.316, allocations: 8 kB / 0.8386 GB, free: 161.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/1.316, allocations: 3.984 kB / 0.8386 GB, free: 161.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.316, allocations: 4 kB / 0.8386 GB, free: 161.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002951/1.316, allocations: 304.4 kB / 0.8389 GB, free: 161.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/1.316, allocations: 88.95 kB / 0.839 GB, free: 161.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/1.316, allocations: 0 / 0.839 GB, free: 161.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002832/1.316, allocations: 15.97 kB / 0.839 GB, free: 161.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/1.316, allocations: 11.98 kB / 0.839 GB, free: 161.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/1.316, allocations: 12 kB / 0.839 GB, free: 161.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.016e-05/1.316, allocations: 79.28 kB / 0.8391 GB, free: 161.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004201/1.317, allocations: 59.98 kB / 0.8392 GB, free: 161.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (18): * Single equations (assignments): 18 * 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.0006599/1.318, allocations: 0.6118 MB / 0.8398 GB, free: 160.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002714/1.318, allocations: 155.8 kB / 0.8399 GB, free: 160.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/1.318, allocations: 0 / 0.8399 GB, free: 160.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/1.318, allocations: 83.91 kB / 0.84 GB, free: 160.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/1.318, allocations: 40.22 kB / 0.84 GB, free: 160.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006036/1.319, allocations: 164.9 kB / 0.8402 GB, free: 160.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/1.319, allocations: 0.7473 MB / 0.8409 GB, free: 159.4 MB / 442.7 MB Notification: Performance of SimCode: time 2.9e-07/1.319, allocations: 4 kB / 0.8409 GB, free: 159.3 MB / 442.7 MB Notification: Performance of Templates: time 0.009489/1.329, allocations: 6.133 MB / 0.8469 GB, free: 153.3 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & ./Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches