Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_3.2.3_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009372/0.0009373, allocations: 187.8 kB / 7.802 MB, free: 2.508 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.078/1.078, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008005/0.0008005, allocations: 94.61 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1572/0.1572, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.45e-06/5.46e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2161, allocations: 58.85 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6407/0.8568, allocations: 460.5 MB / 0.9151 GB, free: 97.15 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.8571, allocations: 72.08 kB / 0.9151 GB, free: 97.11 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.05284/0.9099, allocations: 29.25 MB / 0.9437 GB, free: 73.32 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.91, allocations: 4 kB / 0.9437 GB, free: 73.32 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.0002846/0.9103, allocations: 374 kB / 0.944 GB, free: 72.92 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.9103, allocations: 12.03 kB / 0.9441 GB, free: 72.91 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.9119, allocations: 218 kB / 0.9443 GB, free: 72.71 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.9121, allocations: 208.7 kB / 0.9445 GB, free: 72.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.9121, allocations: 4 kB / 0.9445 GB, free: 72.48 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.9122, allocations: 4 kB / 0.9445 GB, free: 72.47 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002866/0.9125, allocations: 152.7 kB / 0.9446 GB, free: 72.38 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.9127, allocations: 136.6 kB / 0.9448 GB, free: 72.26 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.9127, allocations: 0 / 0.9448 GB, free: 72.26 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.9127, allocations: 4 kB / 0.9448 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.9127, allocations: 3.938 kB / 0.9448 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007962/0.9135, allocations: 0.5403 MB / 0.9453 GB, free: 71.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.9137, allocations: 127.8 kB / 0.9454 GB, free: 71.62 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.059e-05/0.9138, allocations: 59.36 kB / 0.9455 GB, free: 71.58 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.9138, allocations: 0 / 0.9455 GB, free: 71.58 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.505e-05/0.9139, allocations: 47.08 kB / 0.9455 GB, free: 71.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=14): time 9.82e-07/0.9139, allocations: 0 / 0.9455 GB, free: 71.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=19): time 0.003393/0.9173, allocations: 0.865 MB / 0.9464 GB, free: 70.69 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.529e-05/0.9173, allocations: 55.41 kB / 0.9464 GB, free: 70.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.193e-05/0.9174, allocations: 96.94 kB / 0.9465 GB, free: 70.53 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.9174, allocations: 25.7 kB / 0.9465 GB, free: 70.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 2.512e-05/0.9174, allocations: 106.6 kB / 0.9466 GB, free: 70.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.9175, allocations: 58.8 kB / 0.9467 GB, free: 70.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.617e-05/0.9175, allocations: 0 / 0.9467 GB, free: 70.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 4.051e-05/0.9175, allocations: 326.6 kB / 0.947 GB, free: 70.02 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.515e-05/0.9176, allocations: 63.11 kB / 0.9471 GB, free: 69.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.376e-05/0.9177, allocations: 94.53 kB / 0.9471 GB, free: 69.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.9178, allocations: 68.66 kB / 0.9472 GB, free: 69.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.9178, allocations: 0 / 0.9472 GB, free: 69.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003152/0.9181, allocations: 237 kB / 0.9474 GB, free: 69.67 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.9182, allocations: 8 kB / 0.9474 GB, free: 69.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.9182, allocations: 0 / 0.9474 GB, free: 69.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001291/0.9183, allocations: 44.52 kB / 0.9475 GB, free: 69.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.9186, allocations: 47.97 kB / 0.9475 GB, free: 69.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002912/0.9189, allocations: 0.5866 MB / 0.9481 GB, free: 68.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.9191, allocations: 0 / 0.9481 GB, free: 68.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.9191, allocations: 27.75 kB / 0.9481 GB, free: 68.95 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 7.418e-05/0.9192, allocations: 112.8 kB / 0.9482 GB, free: 68.83 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.435e-05/0.9193, allocations: 19.89 kB / 0.9483 GB, free: 68.81 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007558/0.92, allocations: 348.3 kB / 0.9486 GB, free: 68.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.92, allocations: 0 / 0.9486 GB, free: 68.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9201, allocations: 0 / 0.9486 GB, free: 68.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.9201, allocations: 11.89 kB / 0.9486 GB, free: 68.51 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006182/0.9207, allocations: 0.5538 MB / 0.9491 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.9207, allocations: 4 kB / 0.9491 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.921, allocations: 64.11 kB / 0.9492 GB, free: 67.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.633e-05/0.9211, allocations: 20.78 kB / 0.9492 GB, free: 67.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.9211, allocations: 16.02 kB / 0.9492 GB, free: 67.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005032/0.9216, allocations: 1.219 MB / 0.9504 GB, free: 66.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.9217, allocations: 11.91 kB / 0.9504 GB, free: 66.57 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004117/0.9221, allocations: 429.7 kB / 0.9509 GB, free: 66.18 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.053e-05/0.9221, allocations: 85.02 kB / 0.9509 GB, free: 66.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.9222, allocations: 7.984 kB / 0.9509 GB, free: 66.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.9224, allocations: 4 kB / 0.9509 GB, free: 66.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.9224, allocations: 23.81 kB / 0.951 GB, free: 66.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.9225, allocations: 27.98 kB / 0.951 GB, free: 66.02 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.31e-05/0.9225, allocations: 83.16 kB / 0.9511 GB, free: 65.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004108/0.9229, allocations: 98.86 kB / 0.9512 GB, free: 65.86 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.0006572/0.9236, allocations: 0.6394 MB / 0.9518 GB, free: 65.23 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003066/0.9239, allocations: 169.8 kB / 0.952 GB, free: 65.11 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.9239, allocations: 7.938 kB / 0.952 GB, free: 65.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002094/0.9241, allocations: 202.4 kB / 0.9522 GB, free: 64.92 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.9244, allocations: 39.34 kB / 0.9522 GB, free: 64.89 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005197/0.925, allocations: 321.2 kB / 0.9525 GB, free: 64.56 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.9254, allocations: 0.7818 MB / 0.9533 GB, free: 63.75 MB / 0.4948 GB Notification: Performance of SimCode: time 2.21e-07/0.9254, allocations: 0 / 0.9533 GB, free: 63.75 MB / 0.4948 GB Notification: Performance of Templates: time 0.009663/0.935, allocations: 8.408 MB / 0.9615 GB, free: 55.35 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches