Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.22/2.22, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.001641/0.001641, allocations: 191.8 kB / 490.8 MB, free: 1.922 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.628/1.628, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 95.39 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.8314/0.8325, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/1.137, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/2.291, allocations: 419.8 MB / 1.622 GB, free: 11.63 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/2.291, allocations: 91.89 kB / 1.622 GB, free: 11.59 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.644/3.936, allocations: 445.6 MB / 2.057 GB, free: 145.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/3.936, allocations: 12 kB / 2.057 GB, free: 145.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00089/3.937, allocations: 138.4 kB / 2.057 GB, free: 145.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03199/3.969, allocations: 13.01 MB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/3.969, allocations: 24 kB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/3.969, allocations: 40 kB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009707/3.97, allocations: 455.9 kB / 2.07 GB, free: 131.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009556/3.971, allocations: 0.6383 MB / 2.071 GB, free: 130.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/3.971, allocations: 0 / 2.071 GB, free: 130.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/3.971, allocations: 0 / 2.071 GB, free: 130.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.371e-05/3.971, allocations: 23.94 kB / 2.071 GB, free: 130.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004019/3.975, allocations: 3.536 MB / 2.074 GB, free: 127.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/3.975, allocations: 193.8 kB / 2.074 GB, free: 127 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/3.976, allocations: 148.8 kB / 2.075 GB, free: 126.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004519/3.976, allocations: 0.6649 MB / 2.075 GB, free: 126 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/3.976, allocations: 35.09 kB / 2.075 GB, free: 126 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 3.927e-06/3.976, allocations: 0 / 2.075 GB, free: 126 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0008583/3.977, allocations: 360.8 kB / 2.076 GB, free: 125.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/3.977, allocations: 59.39 kB / 2.076 GB, free: 125.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/3.978, allocations: 0.6454 MB / 2.076 GB, free: 124.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/3.978, allocations: 29.7 kB / 2.076 GB, free: 124.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/3.978, allocations: 378.9 kB / 2.077 GB, free: 124.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.998e-05/3.978, allocations: 106.5 kB / 2.077 GB, free: 124.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.732e-05/3.978, allocations: 0 / 2.077 GB, free: 124.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.411e-05/3.978, allocations: 325.9 kB / 2.077 GB, free: 124.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/3.978, allocations: 117 kB / 2.077 GB, free: 124 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/3.979, allocations: 325.7 kB / 2.078 GB, free: 123.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003751/3.979, allocations: 191.7 kB / 2.078 GB, free: 123.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/3.979, allocations: 4 kB / 2.078 GB, free: 123.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.000761/3.98, allocations: 492.6 kB / 2.078 GB, free: 122.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/3.98, allocations: 4 kB / 2.078 GB, free: 122.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/3.98, allocations: 8 kB / 2.078 GB, free: 122.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/3.98, allocations: 8 kB / 2.078 GB, free: 122.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/3.98, allocations: 115.8 kB / 2.078 GB, free: 122.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/3.98, allocations: 15.97 kB / 2.078 GB, free: 122.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007347/3.981, allocations: 83.42 kB / 2.078 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/3.981, allocations: 27.98 kB / 2.078 GB, free: 122.6 MB / 1.151 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.0001122/3.981, allocations: 121.5 kB / 2.079 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/3.981, allocations: 86.97 kB / 2.079 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008607/3.982, allocations: 440.7 kB / 2.079 GB, free: 122 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/3.982, allocations: 4 kB / 2.079 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/3.982, allocations: 0 / 2.079 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000497/3.983, allocations: 412.6 kB / 2.079 GB, free: 121.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/3.985, allocations: 1.225 MB / 2.081 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/3.985, allocations: 0 / 2.081 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/3.985, allocations: 83.88 kB / 2.081 GB, free: 120.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.876e-06/3.985, allocations: 8.156 kB / 2.081 GB, free: 120.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/3.985, allocations: 0 / 2.081 GB, free: 120.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/3.985, allocations: 7.906 kB / 2.081 GB, free: 120.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/3.985, allocations: 7.938 kB / 2.081 GB, free: 120.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008842/3.986, allocations: 0.7516 MB / 2.082 GB, free: 119.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00117/3.987, allocations: 1.365 MB / 2.083 GB, free: 117.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/3.988, allocations: 231.8 kB / 2.083 GB, free: 117.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/3.988, allocations: 0 / 2.083 GB, free: 117.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005424/3.988, allocations: 51.92 kB / 2.083 GB, free: 117.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/3.988, allocations: 19.97 kB / 2.083 GB, free: 117.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.994e-05/3.988, allocations: 23.98 kB / 2.083 GB, free: 117.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006408/3.989, allocations: 0.4913 MB / 2.084 GB, free: 117.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002249/3.991, allocations: 439.2 kB / 2.084 GB, free: 116.6 MB / 1.151 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.001503/3.993, allocations: 0.5814 MB / 2.085 GB, free: 116 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0008199/3.994, allocations: 329 kB / 2.085 GB, free: 115.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/3.994, allocations: 4.062 kB / 2.085 GB, free: 115.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00027/3.994, allocations: 167.8 kB / 2.085 GB, free: 115.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/3.996, allocations: 452.4 kB / 2.086 GB, free: 115.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/3.999, allocations: 1.18 MB / 2.087 GB, free: 113.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006599/4, allocations: 1.148 MB / 2.088 GB, free: 112.7 MB / 1.151 GB Notification: Performance of SimCode: time 9.51e-07/4, allocations: 0 / 2.088 GB, free: 112.7 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)