Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.591/1.591, allocations: 289.8 MB / 297.1 MB, free: 6.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 181.3 kB / 366.3 MB, free: 1.992 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.1 MB / 0.6256 GB, free: 5.82 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 94.77 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2995/0.3006, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7882/1.089, allocations: 116.3 MB / 0.9726 GB, free: 68 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.046/2.135, allocations: 407.5 MB / 1.371 GB, free: 81 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/2.135, allocations: 88.77 kB / 1.371 GB, free: 80.96 MB / 0.823 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.455/3.59, allocations: 435.5 MB / 1.796 GB, free: 161.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 8.163e-05/3.59, allocations: 12 kB / 1.796 GB, free: 161.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009798/3.591, allocations: 134.5 kB / 1.796 GB, free: 161.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02985/3.621, allocations: 12.75 MB / 1.809 GB, free: 148.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/3.621, allocations: 20 kB / 1.809 GB, free: 148.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002244/3.621, allocations: 44 kB / 1.809 GB, free: 148.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001155/3.622, allocations: 451.9 kB / 1.809 GB, free: 148 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/3.624, allocations: 0.6306 MB / 1.81 GB, free: 147.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/3.624, allocations: 7.891 kB / 1.81 GB, free: 147.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.752e-05/3.624, allocations: 4 kB / 1.81 GB, free: 147.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/3.624, allocations: 20 kB / 1.81 GB, free: 147.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004835/3.629, allocations: 3.542 MB / 1.813 GB, free: 143.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004258/3.629, allocations: 193.8 kB / 1.813 GB, free: 143.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/3.629, allocations: 148.8 kB / 1.813 GB, free: 143.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004801/3.63, allocations: 0.6571 MB / 1.814 GB, free: 142.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/3.63, allocations: 42.55 kB / 1.814 GB, free: 142.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=31): time 4.017e-06/3.63, allocations: 0 / 1.814 GB, free: 142.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=31): time 0.001023/3.631, allocations: 357.5 kB / 1.815 GB, free: 142.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/3.631, allocations: 55.41 kB / 1.815 GB, free: 142 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009439/3.632, allocations: 0.6413 MB / 1.815 GB, free: 141.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/3.632, allocations: 25.7 kB / 1.815 GB, free: 141.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000197/3.632, allocations: 382.8 kB / 1.816 GB, free: 140.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/3.632, allocations: 110.4 kB / 1.816 GB, free: 140.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/3.632, allocations: 0 / 1.816 GB, free: 140.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.221e-05/3.632, allocations: 322 kB / 1.816 GB, free: 140.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/3.632, allocations: 121 kB / 1.816 GB, free: 140.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/3.633, allocations: 347.3 kB / 1.816 GB, free: 140 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/3.633, allocations: 188.6 kB / 1.817 GB, free: 139.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/3.633, allocations: 4 kB / 1.817 GB, free: 139.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0009188/3.634, allocations: 492.3 kB / 1.817 GB, free: 139.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/3.634, allocations: 8 kB / 1.817 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/3.634, allocations: 4 kB / 1.817 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/3.634, allocations: 8 kB / 1.817 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/3.635, allocations: 124 kB / 1.817 GB, free: 139.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/3.635, allocations: 11.94 kB / 1.817 GB, free: 139.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007501/3.635, allocations: 87.36 kB / 1.817 GB, free: 139 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.294e-05/3.635, allocations: 28 kB / 1.817 GB, free: 139 MB / 0.948 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.0001145/3.635, allocations: 116.8 kB / 1.817 GB, free: 138.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/3.636, allocations: 90.91 kB / 1.818 GB, free: 138.8 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008093/3.636, allocations: 444.6 kB / 1.818 GB, free: 138.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/3.636, allocations: 4 kB / 1.818 GB, free: 138.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/3.636, allocations: 0 / 1.818 GB, free: 138.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005027/3.637, allocations: 412.6 kB / 1.818 GB, free: 137.9 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/3.639, allocations: 1.213 MB / 1.82 GB, free: 136.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/3.639, allocations: 0 / 1.82 GB, free: 136.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003577/3.639, allocations: 92.03 kB / 1.82 GB, free: 136.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/3.639, allocations: 4 kB / 1.82 GB, free: 136.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/3.639, allocations: 7.906 kB / 1.82 GB, free: 136.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/3.639, allocations: 0 / 1.82 GB, free: 136.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/3.639, allocations: 4 kB / 1.82 GB, free: 136.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008901/3.64, allocations: 0.7516 MB / 1.82 GB, free: 135.7 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001195/3.641, allocations: 1.362 MB / 1.822 GB, free: 134.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/3.642, allocations: 239.8 kB / 1.822 GB, free: 134.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/3.642, allocations: 0 / 1.822 GB, free: 134.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/3.643, allocations: 51.95 kB / 1.822 GB, free: 134 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/3.643, allocations: 28.61 kB / 1.822 GB, free: 134 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.65e-05/3.643, allocations: 15.98 kB / 1.822 GB, free: 134 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0005706/3.643, allocations: 0.4952 MB / 1.823 GB, free: 133.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002196/3.645, allocations: 431.2 kB / 1.823 GB, free: 133.1 MB / 0.948 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.001171/3.647, allocations: 0.549 MB / 1.823 GB, free: 132.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0005318/3.647, allocations: 343.3 kB / 1.824 GB, free: 132.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/3.647, allocations: 0 / 1.824 GB, free: 132.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002092/3.647, allocations: 163.8 kB / 1.824 GB, free: 132 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/3.649, allocations: 463.8 kB / 1.824 GB, free: 131.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/3.652, allocations: 1.177 MB / 1.826 GB, free: 130.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005856/3.652, allocations: 1.141 MB / 1.827 GB, free: 129.2 MB / 0.948 GB Notification: Performance of SimCode: time 2.71e-07/3.652, allocations: 0 / 1.827 GB, free: 129.2 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)