Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.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: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) [: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.0009294/0.0009294, allocations: 175.9 kB / 8.519 MB, free: 1.852 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.155/1.155, allocations: 221.4 MB / 230.3 MB, free: 7.723 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.0009026/0.0009026, allocations: 92.72 kB / 281.2 MB, free: 5.469 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.1557/0.1557, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1743/0.3301, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.4211, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.122/1.543, allocations: 0.7072 GB / 1.201 GB, free: 97.44 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001759/1.543, allocations: 71.59 kB / 1.201 GB, free: 97.37 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.08398/1.627, allocations: 40.49 MB / 1.241 GB, free: 56.56 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/1.627, allocations: 15.94 kB / 1.241 GB, free: 56.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/1.63, allocations: 443 kB / 1.241 GB, free: 56.11 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/1.631, allocations: 262.8 kB / 1.242 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/1.631, allocations: 4 kB / 1.242 GB, free: 55.81 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.588e-05/1.631, allocations: 15.91 kB / 1.242 GB, free: 55.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007236/1.632, allocations: 464.6 kB / 1.242 GB, free: 55.34 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004038/1.632, allocations: 305.4 kB / 1.242 GB, free: 55.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/1.632, allocations: 0 / 1.242 GB, free: 55.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/1.632, allocations: 3.984 kB / 1.242 GB, free: 55.03 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/1.632, allocations: 12 kB / 1.242 GB, free: 55.02 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/1.634, allocations: 0.939 MB / 1.243 GB, free: 54.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/1.634, allocations: 216.3 kB / 1.244 GB, free: 53.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/1.634, allocations: 133.7 kB / 1.244 GB, free: 53.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001121/1.636, allocations: 0.7504 MB / 1.244 GB, free: 52.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.634e-05/1.636, allocations: 42.5 kB / 1.244 GB, free: 52.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/1.636, allocations: 0 / 1.244 GB, free: 52.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=29): time 0.0005781/1.636, allocations: 262.8 kB / 1.245 GB, free: 52.49 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/1.636, allocations: 81.11 kB / 1.245 GB, free: 52.39 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.694e-05/1.636, allocations: 116.9 kB / 1.245 GB, free: 52.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/1.636, allocations: 25.7 kB / 1.245 GB, free: 52.24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.907e-05/1.636, allocations: 112.4 kB / 1.245 GB, free: 52.13 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/1.636, allocations: 98.47 kB / 1.245 GB, free: 52.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/1.636, allocations: 0 / 1.245 GB, free: 52.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 4.674e-05/1.636, allocations: 322.8 kB / 1.245 GB, free: 51.71 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/1.637, allocations: 100.6 kB / 1.246 GB, free: 51.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/1.637, allocations: 183.3 kB / 1.246 GB, free: 51.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/1.637, allocations: 119.9 kB / 1.246 GB, free: 51.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.637, allocations: 4 kB / 1.246 GB, free: 51.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005557/1.638, allocations: 338.4 kB / 1.246 GB, free: 50.94 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/1.638, allocations: 10.5 kB / 1.246 GB, free: 50.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/1.638, allocations: 4 kB / 1.246 GB, free: 50.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/1.638, allocations: 8 kB / 1.246 GB, free: 50.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/1.638, allocations: 71.89 kB / 1.246 GB, free: 50.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/1.638, allocations: 7.938 kB / 1.246 GB, free: 50.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/1.638, allocations: 27.67 kB / 1.246 GB, free: 50.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/1.638, allocations: 23.94 kB / 1.246 GB, free: 50.79 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 8.226e-05/1.638, allocations: 108.9 kB / 1.246 GB, free: 50.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/1.639, allocations: 19.81 kB / 1.246 GB, free: 50.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007083/1.639, allocations: 344.3 kB / 1.247 GB, free: 50.32 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/1.639, allocations: 4 kB / 1.247 GB, free: 50.31 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/1.639, allocations: 11.89 kB / 1.247 GB, free: 50.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/1.639, allocations: 4 kB / 1.247 GB, free: 50.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/1.64, allocations: 316.1 kB / 1.247 GB, free: 49.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/1.64, allocations: 0 / 1.247 GB, free: 49.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004032/1.64, allocations: 63.89 kB / 1.247 GB, free: 49.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/1.64, allocations: 3.938 kB / 1.247 GB, free: 49.88 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/1.64, allocations: 7.984 kB / 1.247 GB, free: 49.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/1.64, allocations: 4 kB / 1.247 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/1.64, allocations: 3.906 kB / 1.247 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005973/1.641, allocations: 0.5214 MB / 1.248 GB, free: 49.32 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008114/1.642, allocations: 1.021 MB / 1.249 GB, free: 48.28 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 2.873e-05/1.642, allocations: 88.95 kB / 1.249 GB, free: 48.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/1.642, allocations: 11.98 kB / 1.249 GB, free: 48.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/1.642, allocations: 11.91 kB / 1.249 GB, free: 48.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.039e-05/1.642, allocations: 19.97 kB / 1.249 GB, free: 48.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/1.642, allocations: 11.98 kB / 1.249 GB, free: 48.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.497e-05/1.642, allocations: 87.28 kB / 1.249 GB, free: 48.03 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001479/1.644, allocations: 327.6 kB / 1.249 GB, free: 47.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium.p,medium.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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.001393/1.645, allocations: 0.8558 MB / 1.25 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003718/1.646, allocations: 264.3 kB / 1.25 GB, free: 46.59 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/1.646, allocations: 4.562 kB / 1.25 GB, free: 46.58 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/1.646, allocations: 131.9 kB / 1.25 GB, free: 46.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/1.646, allocations: 83.78 kB / 1.251 GB, free: 46.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008763/1.647, allocations: 0.5987 MB / 1.251 GB, free: 45.74 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/1.648, allocations: 0.7946 MB / 1.252 GB, free: 44.92 MB / 0.5105 GB Notification: Performance of SimCode: time 4.71e-07/1.648, allocations: 0 / 1.252 GB, free: 44.92 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1)