Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") [: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.001299/0.001299, allocations: 175.6 kB / 8.517 MB, free: 1.859 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.488/1.488, allocations: 221.4 MB / 230.3 MB, free: 7.629 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.001391/0.001391, allocations: 94.55 kB / 281.2 MB, free: 5.418 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2068/0.2068, allocations: 44.15 MB / 376.1 MB, free: 3.184 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.812e-06/6.832e-06, allocations: 224 / 444 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1522, allocations: 61.91 MB / 0.4941 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.787/1.94, allocations: 0.7922 GB / 1.286 GB, free: 5.215 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/1.94, allocations: 87.94 kB / 1.286 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.496/4.436, allocations: 0.7259 GB / 2.012 GB, free: 77.05 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.845e-05/4.436, allocations: 20 kB / 2.012 GB, free: 77.03 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004685/4.441, allocations: 1.406 MB / 2.014 GB, free: 75.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/4.441, allocations: 8.031 kB / 2.014 GB, free: 75.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001729/4.443, allocations: 289.5 kB / 2.014 GB, free: 75.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/4.444, allocations: 0.6647 MB / 2.015 GB, free: 74.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.995e-05/4.444, allocations: 93.39 kB / 2.015 GB, free: 74.52 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/4.445, allocations: 43.94 kB / 2.015 GB, free: 74.48 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001349/4.446, allocations: 0.902 MB / 2.016 GB, free: 73.57 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/4.447, allocations: 1.155 MB / 2.017 GB, free: 72.35 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/4.447, allocations: 3.703 kB / 2.017 GB, free: 72.35 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/4.448, allocations: 7.062 kB / 2.017 GB, free: 72.34 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.062e-05/4.448, allocations: 80.64 kB / 2.017 GB, free: 72.27 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00584/4.454, allocations: 4.867 MB / 2.022 GB, free: 67.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/4.454, allocations: 206.2 kB / 2.022 GB, free: 66.99 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/4.454, allocations: 133.3 kB / 2.022 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001892/4.454, allocations: 271.5 kB / 2.022 GB, free: 66.54 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/4.454, allocations: 39.61 kB / 2.022 GB, free: 66.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 3.937e-06/4.454, allocations: 3.438 kB / 2.022 GB, free: 66.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=33): time 0.006112/4.46, allocations: 1.625 MB / 2.024 GB, free: 64.79 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/4.461, allocations: 132.5 kB / 2.024 GB, free: 64.62 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008168/4.461, allocations: 0.6677 MB / 2.025 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/4.461, allocations: 29.45 kB / 2.025 GB, free: 63.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/4.462, allocations: 0.5003 MB / 2.025 GB, free: 63.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.585e-05/4.462, allocations: 122.3 kB / 2.025 GB, free: 63.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/4.462, allocations: 2.438 kB / 2.025 GB, free: 63.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001068/4.462, allocations: 390.8 kB / 2.026 GB, free: 62.89 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/4.462, allocations: 250.5 kB / 2.026 GB, free: 62.65 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005422/4.463, allocations: 0.8324 MB / 2.027 GB, free: 61.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/4.463, allocations: 482.7 kB / 2.027 GB, free: 61.11 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/4.463, allocations: 7.906 kB / 2.027 GB, free: 61.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001687/4.465, allocations: 1.104 MB / 2.028 GB, free: 59.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/4.465, allocations: 4 kB / 2.028 GB, free: 59.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/4.465, allocations: 20 kB / 2.028 GB, free: 59.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/4.466, allocations: 268.7 kB / 2.028 GB, free: 59.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005615/4.467, allocations: 211.6 kB / 2.029 GB, free: 59.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009802/4.468, allocations: 0.9384 MB / 2.03 GB, free: 58.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000926/4.469, allocations: 40.05 kB / 2.03 GB, free: 58.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.461e-05/4.469, allocations: 75.89 kB / 2.03 GB, free: 58.42 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0001867/4.469, allocations: 148.5 kB / 2.03 GB, free: 58.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/4.469, allocations: 79.06 kB / 2.03 GB, free: 58.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/4.47, allocations: 0.5391 MB / 2.03 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/4.47, allocations: 4 kB / 2.03 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/4.47, allocations: 0 / 2.03 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/4.47, allocations: 4 kB / 2.03 GB, free: 57.63 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/4.472, allocations: 1.041 MB / 2.031 GB, free: 56.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/4.472, allocations: 3.906 kB / 2.031 GB, free: 56.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009934/4.473, allocations: 175.8 kB / 2.032 GB, free: 56.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.869e-05/4.473, allocations: 20.84 kB / 2.032 GB, free: 56.35 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/4.473, allocations: 7.984 kB / 2.032 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/4.475, allocations: 2.572 MB / 2.034 GB, free: 53.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/4.475, allocations: 3.938 kB / 2.034 GB, free: 53.55 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008775/4.475, allocations: 0.6849 MB / 2.035 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004059/4.476, allocations: 196 kB / 2.035 GB, free: 52.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/4.476, allocations: 4 kB / 2.035 GB, free: 52.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/4.477, allocations: 19.97 kB / 2.035 GB, free: 52.61 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.518e-05/4.477, allocations: 23.97 kB / 2.035 GB, free: 52.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/4.477, allocations: 23.98 kB / 2.035 GB, free: 52.56 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005832/4.477, allocations: 487.1 kB / 2.036 GB, free: 52.09 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001887/4.479, allocations: 431.8 kB / 2.036 GB, free: 51.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.003211/4.482, allocations: 1.538 MB / 2.037 GB, free: 50.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001302/4.484, allocations: 0.6163 MB / 2.038 GB, free: 49.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/4.484, allocations: 8.062 kB / 2.038 GB, free: 49.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001025/4.485, allocations: 389.3 kB / 2.038 GB, free: 49.31 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/4.486, allocations: 297.1 kB / 2.039 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/4.489, allocations: 1.133 MB / 2.04 GB, free: 47.87 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007402/4.489, allocations: 1.141 MB / 2.041 GB, free: 46.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.022e-06/4.489, allocations: 0 / 2.041 GB, free: 46.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.03441/4.524, allocations: 22.45 MB / 2.063 GB, free: 24.57 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches