Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001494/0.001494, allocations: 205.8 kB / 8.544 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008765/0.0008765, allocations: 90.75 kB / 286.3 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1694/0.1694, allocations: 45.14 MB / 383.3 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1975/0.367, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.4511, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.216/1.667, allocations: 0.7083 GB / 1.212 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/1.668, allocations: 75.64 kB / 1.212 GB, free: 134.2 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.085/1.753, allocations: 40.43 MB / 1.252 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/1.753, allocations: 8 kB / 1.252 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003199/1.756, allocations: 447 kB / 1.252 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/1.756, allocations: 266.5 kB / 1.252 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/1.756, allocations: 8 kB / 1.252 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/1.756, allocations: 15.89 kB / 1.252 GB, free: 99.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007686/1.757, allocations: 461.7 kB / 1.253 GB, free: 99.55 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/1.758, allocations: 302.5 kB / 1.253 GB, free: 99.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/1.758, allocations: 0 / 1.253 GB, free: 99.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/1.758, allocations: 4 kB / 1.253 GB, free: 99.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/1.758, allocations: 7.938 kB / 1.253 GB, free: 99.31 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/1.76, allocations: 0.9511 MB / 1.254 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/1.76, allocations: 223.5 kB / 1.254 GB, free: 98.33 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/1.76, allocations: 134.4 kB / 1.254 GB, free: 98.24 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0012/1.761, allocations: 0.7372 MB / 1.255 GB, free: 97.39 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/1.761, allocations: 46.42 kB / 1.255 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=29): time 1.684e-06/1.761, allocations: 0 / 1.255 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=29): time 0.0006064/1.762, allocations: 264 kB / 1.255 GB, free: 97.15 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.967e-05/1.762, allocations: 85.34 kB / 1.255 GB, free: 97.05 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.792e-05/1.762, allocations: 96.69 kB / 1.256 GB, free: 96.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/1.762, allocations: 25.7 kB / 1.256 GB, free: 96.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.978e-05/1.762, allocations: 112.2 kB / 1.256 GB, free: 96.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/1.762, allocations: 105.3 kB / 1.256 GB, free: 96.72 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-05/1.762, allocations: 0 / 1.256 GB, free: 96.72 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 4.575e-05/1.762, allocations: 334.4 kB / 1.256 GB, free: 96.39 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/1.762, allocations: 96.64 kB / 1.256 GB, free: 96.33 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/1.763, allocations: 182.1 kB / 1.256 GB, free: 96.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/1.763, allocations: 126.8 kB / 1.257 GB, free: 96.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.763, allocations: 3.938 kB / 1.257 GB, free: 96.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005672/1.763, allocations: 336 kB / 1.257 GB, free: 95.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/1.763, allocations: 4 kB / 1.257 GB, free: 95.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/1.763, allocations: 4 kB / 1.257 GB, free: 95.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/1.763, allocations: 7.984 kB / 1.257 GB, free: 95.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/1.764, allocations: 71.47 kB / 1.257 GB, free: 95.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/1.764, allocations: 7.984 kB / 1.257 GB, free: 95.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/1.764, allocations: 28.06 kB / 1.257 GB, free: 95.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.558e-05/1.764, allocations: 15.98 kB / 1.257 GB, free: 95.69 MB / 0.5261 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 9.081e-05/1.764, allocations: 116.2 kB / 1.257 GB, free: 95.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/1.764, allocations: 15.81 kB / 1.257 GB, free: 95.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007519/1.765, allocations: 351.9 kB / 1.257 GB, free: 95.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/1.765, allocations: 7.906 kB / 1.257 GB, free: 95.28 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.765, allocations: 4 kB / 1.257 GB, free: 95.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/1.765, allocations: 0 / 1.257 GB, free: 95.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004952/1.766, allocations: 322.9 kB / 1.258 GB, free: 94.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/1.766, allocations: 4 kB / 1.258 GB, free: 94.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000389/1.766, allocations: 51.91 kB / 1.258 GB, free: 94.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/1.766, allocations: 4 kB / 1.258 GB, free: 94.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/1.766, allocations: 11.61 kB / 1.258 GB, free: 94.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/1.766, allocations: 7.906 kB / 1.258 GB, free: 94.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.766, allocations: 0 / 1.258 GB, free: 94.89 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006251/1.767, allocations: 0.5144 MB / 1.258 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008499/1.768, allocations: 1.037 MB / 1.259 GB, free: 93.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/1.768, allocations: 92.89 kB / 1.259 GB, free: 93.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/1.768, allocations: 7.906 kB / 1.259 GB, free: 93.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/1.768, allocations: 8.266 kB / 1.259 GB, free: 93.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/1.768, allocations: 15.92 kB / 1.259 GB, free: 93.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.82e-05/1.768, allocations: 23.11 kB / 1.259 GB, free: 93.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.668e-05/1.768, allocations: 94.83 kB / 1.26 GB, free: 93.31 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001702/1.77, allocations: 334.5 kB / 1.26 GB, free: 93.08 MB / 0.5261 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.001542/1.772, allocations: 0.8702 MB / 1.261 GB, free: 92.22 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003953/1.772, allocations: 269.6 kB / 1.261 GB, free: 92.04 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/1.772, allocations: 0 / 1.261 GB, free: 92.04 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/1.772, allocations: 139.3 kB / 1.261 GB, free: 91.95 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/1.773, allocations: 67.73 kB / 1.261 GB, free: 91.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009305/1.774, allocations: 0.585 MB / 1.262 GB, free: 91.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/1.774, allocations: 0.7975 MB / 1.263 GB, free: 90.48 MB / 0.5261 GB Notification: Performance of SimCode: time 2.51e-07/1.774, allocations: 0 / 1.263 GB, free: 90.48 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1)