Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001646/0.001646, allocations: 171.2 kB / 8.147 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001264/0.001264, allocations: 85.09 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2575/0.2575, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.846e-06/9.047e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3009, allocations: 58.84 MB / 476.5 MB, free: 5.07 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9782/1.279, allocations: 460.5 MB / 0.915 GB, free: 97.5 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/1.279, allocations: 76.16 kB / 0.9151 GB, free: 97.46 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.09907/1.379, allocations: 29.24 MB / 0.9437 GB, free: 73.68 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.476e-05/1.379, allocations: 4 kB / 0.9437 GB, free: 73.68 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005074/1.379, allocations: 381.7 kB / 0.944 GB, free: 73.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/1.379, allocations: 8.031 kB / 0.944 GB, free: 73.26 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003045/1.382, allocations: 229.3 kB / 0.9443 GB, free: 73.05 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/1.383, allocations: 197.6 kB / 0.9445 GB, free: 72.84 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/1.383, allocations: 7.938 kB / 0.9445 GB, free: 72.83 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.898e-05/1.383, allocations: 7.984 kB / 0.9445 GB, free: 72.82 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005328/1.383, allocations: 153.6 kB / 0.9446 GB, free: 72.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/1.384, allocations: 129.7 kB / 0.9447 GB, free: 72.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/1.384, allocations: 0 / 0.9447 GB, free: 72.61 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/1.384, allocations: 0 / 0.9447 GB, free: 72.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1.384, allocations: 8 kB / 0.9447 GB, free: 72.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/1.385, allocations: 0.545 MB / 0.9453 GB, free: 72.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003609/1.386, allocations: 118.1 kB / 0.9454 GB, free: 71.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/1.386, allocations: 62.22 kB / 0.9454 GB, free: 71.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/1.386, allocations: 0 / 0.9454 GB, free: 71.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/1.386, allocations: 43.62 kB / 0.9455 GB, free: 71.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=14): time 2.835e-06/1.386, allocations: 0 / 0.9455 GB, free: 71.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=19): time 0.007041/1.393, allocations: 0.8685 MB / 0.9463 GB, free: 71.05 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/1.393, allocations: 59.34 kB / 0.9464 GB, free: 70.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.135e-05/1.393, allocations: 104.2 kB / 0.9465 GB, free: 70.87 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/1.393, allocations: 25.7 kB / 0.9465 GB, free: 70.84 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/1.393, allocations: 165.9 kB / 0.9467 GB, free: 70.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/1.393, allocations: 62.09 kB / 0.9467 GB, free: 70.62 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/1.393, allocations: 8 kB / 0.9467 GB, free: 70.62 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.858e-05/1.393, allocations: 318.4 kB / 0.947 GB, free: 70.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/1.394, allocations: 62.8 kB / 0.9471 GB, free: 70.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/1.394, allocations: 89.17 kB / 0.9472 GB, free: 70.19 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/1.394, allocations: 71.34 kB / 0.9473 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/1.394, allocations: 4 kB / 0.9473 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006006/1.395, allocations: 230.5 kB / 0.9475 GB, free: 69.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/1.395, allocations: 4 kB / 0.9475 GB, free: 69.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/1.395, allocations: 3.984 kB / 0.9475 GB, free: 69.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002249/1.395, allocations: 43.91 kB / 0.9475 GB, free: 69.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/1.395, allocations: 51.91 kB / 0.9476 GB, free: 69.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004787/1.396, allocations: 0.5778 MB / 0.9481 GB, free: 69.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/1.396, allocations: 4.031 kB / 0.9482 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.1e-05/1.396, allocations: 27.92 kB / 0.9482 GB, free: 69.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.396, allocations: 41.39 kB / 0.9482 GB, free: 69.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.19e-05/1.397, allocations: 15.91 kB / 0.9482 GB, free: 69.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/1.398, allocations: 346.4 kB / 0.9486 GB, free: 68.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/1.398, allocations: 7.984 kB / 0.9486 GB, free: 68.88 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/1.398, allocations: 4 kB / 0.9486 GB, free: 68.88 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/1.398, allocations: 0 / 0.9486 GB, free: 68.88 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/1.399, allocations: 0.5557 MB / 0.9491 GB, free: 68.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/1.399, allocations: 3.984 kB / 0.9491 GB, free: 68.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006244/1.4, allocations: 59.89 kB / 0.9492 GB, free: 68.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/1.4, allocations: 20.64 kB / 0.9492 GB, free: 68.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/1.4, allocations: 11.98 kB / 0.9492 GB, free: 68.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008925/1.401, allocations: 1.216 MB / 0.9504 GB, free: 66.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.401, allocations: 0 / 0.9504 GB, free: 66.96 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007581/1.402, allocations: 438 kB / 0.9508 GB, free: 66.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/1.402, allocations: 96.91 kB / 0.9509 GB, free: 66.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/1.402, allocations: 3.75 kB / 0.9509 GB, free: 66.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003735/1.402, allocations: 4 kB / 0.9509 GB, free: 66.44 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/1.402, allocations: 19.97 kB / 0.9509 GB, free: 66.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.26e-05/1.402, allocations: 27.61 kB / 0.951 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.22e-05/1.403, allocations: 94.77 kB / 0.951 GB, free: 66.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000615/1.403, allocations: 101.9 kB / 0.9511 GB, free: 66.22 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001073/1.404, allocations: 0.6308 MB / 0.9518 GB, free: 65.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005656/1.405, allocations: 177.7 kB / 0.9519 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/1.405, allocations: 0 / 0.9519 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003592/1.405, allocations: 209.8 kB / 0.9521 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005487/1.406, allocations: 35.72 kB / 0.9522 GB, free: 65.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008784/1.407, allocations: 350.5 kB / 0.9525 GB, free: 64.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006628/1.407, allocations: 0.7818 MB / 0.9533 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of SimCode: time 1.001e-06/1.407, allocations: 0 / 0.9533 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of Templates: time 0.01247/1.42, allocations: 6.415 MB / 0.9595 GB, free: 57.67 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches