Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.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) 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(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",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.0009315/0.0009316, allocations: 185.8 kB / 8.137 MB, free: 2.211 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.075/1.075, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008484/0.0008485, allocations: 103.1 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0921/0.09298, allocations: 55.8 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.2785, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.323, allocations: 0.7061 GB / 1.084 GB, free: 61.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/1.323, allocations: 67.78 kB / 1.084 GB, free: 61.56 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.3593/1.683, allocations: 109.7 MB / 1.191 GB, free: 133.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/1.683, allocations: 8 kB / 1.191 GB, free: 133.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001891/1.685, allocations: 299.1 kB / 1.191 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/1.685, allocations: 292.7 kB / 1.192 GB, free: 132.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/1.685, allocations: 8 kB / 1.192 GB, free: 132.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.189e-05/1.685, allocations: 23.98 kB / 1.192 GB, free: 132.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008228/1.686, allocations: 0.6065 MB / 1.192 GB, free: 131.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007596/1.687, allocations: 0.5892 MB / 1.193 GB, free: 131.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/1.687, allocations: 4 kB / 1.193 GB, free: 131.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/1.687, allocations: 0.6562 kB / 1.193 GB, free: 131.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.561e-05/1.687, allocations: 12.44 kB / 1.193 GB, free: 131.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/1.69, allocations: 1.775 MB / 1.195 GB, free: 129.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/1.691, allocations: 358.7 kB / 1.195 GB, free: 129 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/1.691, allocations: 173.7 kB / 1.195 GB, free: 128.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001328/1.692, allocations: 0.9221 MB / 1.196 GB, free: 127.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/1.692, allocations: 42.55 kB / 1.196 GB, free: 127.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 2.034e-06/1.692, allocations: 0 / 1.196 GB, free: 127.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=48): time 0.006771/1.699, allocations: 2.186 MB / 1.198 GB, free: 125.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/1.699, allocations: 89.05 kB / 1.198 GB, free: 125.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/1.699, allocations: 160.2 kB / 1.198 GB, free: 125.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.497e-05/1.699, allocations: 29.7 kB / 1.199 GB, free: 125.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/1.699, allocations: 168.1 kB / 1.199 GB, free: 124.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/1.699, allocations: 169.5 kB / 1.199 GB, free: 124.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-05/1.699, allocations: 0 / 1.199 GB, free: 124.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.148e-05/1.7, allocations: 334.8 kB / 1.199 GB, free: 124.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/1.7, allocations: 205.3 kB / 1.199 GB, free: 124.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/1.7, allocations: 356.9 kB / 1.2 GB, free: 123.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/1.701, allocations: 229.2 kB / 1.2 GB, free: 123.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.701, allocations: 3.938 kB / 1.2 GB, free: 123.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009841/1.702, allocations: 0.6253 MB / 1.201 GB, free: 122.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/1.702, allocations: 8.062 kB / 1.201 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/1.702, allocations: 8 kB / 1.201 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001527/1.702, allocations: 53.64 kB / 1.201 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/1.703, allocations: 179.7 kB / 1.201 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004486/1.703, allocations: 1.093 MB / 1.202 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007263/1.704, allocations: 32.16 kB / 1.202 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-05/1.704, allocations: 39.97 kB / 1.202 GB, free: 121.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000148/1.704, allocations: 119.9 kB / 1.202 GB, free: 121.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/1.704, allocations: 31.62 kB / 1.202 GB, free: 121.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/1.706, allocations: 0.685 MB / 1.203 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/1.706, allocations: 8 kB / 1.203 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/1.706, allocations: 0 / 1.203 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/1.706, allocations: 7.922 kB / 1.203 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/1.708, allocations: 1.372 MB / 1.204 GB, free: 119.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/1.708, allocations: 4 kB / 1.204 GB, free: 119.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/1.709, allocations: 152 kB / 1.204 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001341/1.709, allocations: 37.69 kB / 1.204 GB, free: 118.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.908e-05/1.709, allocations: 15.97 kB / 1.204 GB, free: 118.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/1.711, allocations: 2.425 MB / 1.207 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.711, allocations: 4.031 kB / 1.207 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001196/1.712, allocations: 0.9792 MB / 1.208 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001612/1.714, allocations: 1.626 MB / 1.209 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.984e-05/1.714, allocations: 104.7 kB / 1.209 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/1.714, allocations: 4 kB / 1.209 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007513/1.714, allocations: 31.95 kB / 1.209 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/1.715, allocations: 27.95 kB / 1.209 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.896e-05/1.715, allocations: 35.97 kB / 1.209 GB, free: 113.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.397e-05/1.715, allocations: 123.2 kB / 1.209 GB, free: 113.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002259/1.717, allocations: 491.5 kB / 1.21 GB, free: 112.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003367/1.72, allocations: 1.379 MB / 1.211 GB, free: 111.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008818/1.721, allocations: 0.5187 MB / 1.212 GB, free: 110.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.721, allocations: 0 / 1.212 GB, free: 110.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005007/1.722, allocations: 464.2 kB / 1.212 GB, free: 110.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/1.722, allocations: 79.66 kB / 1.212 GB, free: 110.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/1.724, allocations: 0.7169 MB / 1.213 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006585/1.724, allocations: 0.8922 MB / 1.214 GB, free: 108.6 MB / 442.7 MB Notification: Performance of SimCode: time 2.5e-07/1.724, allocations: 0 / 1.214 GB, free: 108.6 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1)