Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.184/2.184, allocations: 387.2 MB / 394.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 181.3 kB / 487 MB, free: 5.34 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 221.3 MB / 0.7819 GB, free: 1.289 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 101.6 kB / 0.9213 GB, free: 2.523 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6962/0.6972, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.9938, allocations: 142.3 MB / 1.205 GB, free: 26.06 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.062/2.055, allocations: 419 MB / 1.614 GB, free: 4.332 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/2.056, allocations: 95.75 kB / 1.615 GB, free: 4.285 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 1.511/3.567, allocations: 445.6 MB / 2.05 GB, free: 107.9 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/3.567, allocations: 8 kB / 2.05 GB, free: 107.9 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003617/3.568, allocations: 138.5 kB / 2.05 GB, free: 107.8 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0286/3.596, allocations: 13 MB / 2.063 GB, free: 94.6 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/3.596, allocations: 24 kB / 2.063 GB, free: 94.57 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/3.597, allocations: 44 kB / 2.063 GB, free: 94.53 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008532/3.597, allocations: 455.9 kB / 2.063 GB, free: 94.09 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009242/3.598, allocations: 0.6344 MB / 2.064 GB, free: 93.42 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/3.598, allocations: 3.938 kB / 2.064 GB, free: 93.42 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.415e-05/3.598, allocations: 0 / 2.064 GB, free: 93.42 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/3.598, allocations: 20 kB / 2.064 GB, free: 93.4 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/3.602, allocations: 3.549 MB / 2.067 GB, free: 89.65 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003762/3.603, allocations: 200.1 kB / 2.067 GB, free: 89.45 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/3.603, allocations: 148.8 kB / 2.067 GB, free: 89.3 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003989/3.603, allocations: 0.6687 MB / 2.068 GB, free: 88.48 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/3.603, allocations: 34.56 kB / 2.068 GB, free: 88.44 MB / 1.135 GB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/3.603, allocations: 0 / 2.068 GB, free: 88.44 MB / 1.135 GB Notification: Performance of matching and sorting (n=31): time 0.000734/3.604, allocations: 353 kB / 2.069 GB, free: 88.09 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.804e-05/3.604, allocations: 51.41 kB / 2.069 GB, free: 88.03 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006973/3.605, allocations: 0.6532 MB / 2.069 GB, free: 87.37 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/3.605, allocations: 25.7 kB / 2.069 GB, free: 87.34 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/3.605, allocations: 378.9 kB / 2.07 GB, free: 86.96 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 8.123e-05/3.605, allocations: 106.4 kB / 2.07 GB, free: 86.85 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/3.605, allocations: 0 / 2.07 GB, free: 86.85 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 7.034e-05/3.605, allocations: 322.3 kB / 2.07 GB, free: 86.53 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/3.605, allocations: 117 kB / 2.07 GB, free: 86.42 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/3.606, allocations: 329.7 kB / 2.07 GB, free: 86 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/3.606, allocations: 195.6 kB / 2.071 GB, free: 85.81 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/3.606, allocations: 0 / 2.071 GB, free: 85.81 MB / 1.135 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0007595/3.607, allocations: 496.2 kB / 2.071 GB, free: 85.32 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/3.607, allocations: 4 kB / 2.071 GB, free: 85.31 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/3.607, allocations: 8 kB / 2.071 GB, free: 85.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/3.607, allocations: 8 kB / 2.071 GB, free: 85.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/3.607, allocations: 124.1 kB / 2.071 GB, free: 85.18 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/3.607, allocations: 11.98 kB / 2.071 GB, free: 85.16 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006817/3.608, allocations: 83.39 kB / 2.071 GB, free: 85.08 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/3.608, allocations: 27.98 kB / 2.071 GB, free: 85.05 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * 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 0.0001081/3.608, allocations: 120.8 kB / 2.071 GB, free: 84.93 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/3.608, allocations: 82.97 kB / 2.072 GB, free: 84.85 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008207/3.609, allocations: 446.5 kB / 2.072 GB, free: 84.4 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/3.609, allocations: 4 kB / 2.072 GB, free: 84.39 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/3.609, allocations: 0 / 2.072 GB, free: 84.39 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004739/3.61, allocations: 407.5 kB / 2.072 GB, free: 83.97 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/3.611, allocations: 1.217 MB / 2.074 GB, free: 82.69 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/3.611, allocations: 0 / 2.074 GB, free: 82.69 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/3.612, allocations: 92.03 kB / 2.074 GB, free: 82.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/3.612, allocations: 11.84 kB / 2.074 GB, free: 82.59 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/3.612, allocations: 4 kB / 2.074 GB, free: 82.58 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/3.612, allocations: 0 / 2.074 GB, free: 82.58 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/3.612, allocations: 7.938 kB / 2.074 GB, free: 82.57 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008842/3.613, allocations: 0.7526 MB / 2.074 GB, free: 81.76 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001144/3.614, allocations: 1.365 MB / 2.076 GB, free: 80.33 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/3.614, allocations: 231.8 kB / 2.076 GB, free: 80.09 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/3.614, allocations: 8 kB / 2.076 GB, free: 80.08 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005095/3.615, allocations: 51.86 kB / 2.076 GB, free: 80.03 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/3.615, allocations: 19.97 kB / 2.076 GB, free: 80.01 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/3.615, allocations: 23.98 kB / 2.076 GB, free: 79.98 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0005397/3.615, allocations: 0.4952 MB / 2.077 GB, free: 79.49 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001874/3.617, allocations: 443.1 kB / 2.077 GB, free: 79.06 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0009028/3.618, allocations: 0.5589 MB / 2.077 GB, free: 78.5 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.0004852/3.619, allocations: 339.4 kB / 2.078 GB, free: 78.17 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/3.619, allocations: 0 / 2.078 GB, free: 78.17 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0002018/3.619, allocations: 163.8 kB / 2.078 GB, free: 78.01 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/3.621, allocations: 460.2 kB / 2.078 GB, free: 77.57 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/3.623, allocations: 1.188 MB / 2.08 GB, free: 76.34 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000583/3.624, allocations: 1.132 MB / 2.081 GB, free: 75.18 MB / 1.135 GB Notification: Performance of SimCode: time 4.91e-07/3.624, allocations: 0 / 2.081 GB, free: 75.18 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)