Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",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.631/1.631, allocations: 289.8 MB / 297.1 MB, free: 6.672 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.002049/0.002049, allocations: 184.2 kB / 366.3 MB, free: 1.965 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.603/1.603, allocations: 205.1 MB / 0.6256 GB, free: 5.824 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.000887/0.000887, allocations: 83.92 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2583/0.2592, allocations: 122.4 MB / 0.8591 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6606/0.9198, allocations: 116.3 MB / 0.9727 GB, free: 68.38 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.574/5.494, allocations: 2.057 GB / 3.03 GB, free: 20.25 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/5.495, allocations: 92.41 kB / 3.03 GB, free: 20.16 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.7266/6.221, allocations: 41.21 MB / 3.07 GB, free: 338.5 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/6.221, allocations: 7.469 kB / 3.07 GB, free: 338.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/6.222, allocations: 36.75 kB / 3.07 GB, free: 338.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/6.222, allocations: 213.6 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/6.222, allocations: 5.125 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/6.222, allocations: 7.875 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002257/6.222, allocations: 59.59 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/6.223, allocations: 85.61 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/6.223, allocations: 3.75 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/6.223, allocations: 4.469 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/6.223, allocations: 2.188 kB / 3.07 GB, free: 338.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009136/6.224, allocations: 417.7 kB / 3.071 GB, free: 338 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/6.224, allocations: 75.3 kB / 3.071 GB, free: 338 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.344e-05/6.224, allocations: 24.42 kB / 3.071 GB, free: 338 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/6.224, allocations: 5.406 kB / 3.071 GB, free: 338 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/6.224, allocations: 39.03 kB / 3.071 GB, free: 337.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.724e-06/6.224, allocations: 0.9375 kB / 3.071 GB, free: 337.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0003198/6.224, allocations: 74.33 kB / 3.071 GB, free: 337.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/6.224, allocations: 56.28 kB / 3.071 GB, free: 337.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/6.225, allocations: 127.4 kB / 3.071 GB, free: 337.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/6.225, allocations: 30.39 kB / 3.071 GB, free: 337.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.212e-05/6.225, allocations: 113.6 kB / 3.071 GB, free: 337.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/6.225, allocations: 23.69 kB / 3.071 GB, free: 337.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/6.225, allocations: 0 / 3.071 GB, free: 337.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.778e-05/6.225, allocations: 320.8 kB / 3.072 GB, free: 337.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.011e-05/6.225, allocations: 18.06 kB / 3.072 GB, free: 337.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.728e-05/6.225, allocations: 19.22 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.137e-05/6.225, allocations: 22 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/6.225, allocations: 0.5312 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002487/6.225, allocations: 90.97 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/6.225, allocations: 4.844 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/6.225, allocations: 0.625 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/6.225, allocations: 0.5312 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/6.226, allocations: 25.41 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/6.226, allocations: 4.5 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/6.226, allocations: 15.02 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/6.226, allocations: 1.875 kB / 3.072 GB, free: 337.2 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.884e-05/6.226, allocations: 102.1 kB / 3.072 GB, free: 337.1 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-05/6.226, allocations: 12.72 kB / 3.072 GB, free: 337.1 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/6.226, allocations: 103.8 kB / 3.072 GB, free: 337 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/6.226, allocations: 1.188 kB / 3.072 GB, free: 337 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/6.226, allocations: 0.625 kB / 3.072 GB, free: 337 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/6.226, allocations: 4 kB / 3.072 GB, free: 337 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002825/6.227, allocations: 195 kB / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/6.227, allocations: 4.562 kB / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/6.227, allocations: 19.62 kB / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/6.227, allocations: 0.75 kB / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/6.227, allocations: 0.5312 kB / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/6.227, allocations: 0.5938 kB / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/6.227, allocations: 0 / 3.072 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002374/6.227, allocations: 191 kB / 3.072 GB, free: 336.7 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003951/6.227, allocations: 0.5573 MB / 3.073 GB, free: 336.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/6.227, allocations: 83.73 kB / 3.073 GB, free: 336 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/6.227, allocations: 4.5 kB / 3.073 GB, free: 336 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/6.228, allocations: 14.86 kB / 3.073 GB, free: 336 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/6.228, allocations: 6.062 kB / 3.073 GB, free: 336 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.994e-06/6.228, allocations: 2.312 kB / 3.073 GB, free: 336 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0001034/6.228, allocations: 112.8 kB / 3.073 GB, free: 335.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001094/6.229, allocations: 96.06 kB / 3.073 GB, free: 335.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.00157/6.23, allocations: 0.6584 MB / 3.074 GB, free: 335.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002179/6.231, allocations: 54.08 kB / 3.074 GB, free: 335.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/6.231, allocations: 0.5625 kB / 3.074 GB, free: 335.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.993e-05/6.231, allocations: 24.88 kB / 3.074 GB, free: 335.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/6.231, allocations: 23.97 kB / 3.074 GB, free: 335.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006282/6.232, allocations: 163.5 kB / 3.074 GB, free: 335.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003521/6.232, allocations: 0.7298 MB / 3.075 GB, free: 334.8 MB / 0.948 GB Notification: Performance of SimCode: time 3.81e-07/6.232, allocations: 0 / 3.075 GB, free: 334.8 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)