Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.241/1.241, allocations: 249.4 MB / 256.7 MB, free: 7.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 181.3 kB / 316 MB, free: 3.586 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.13/1.13, allocations: 205.2 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008127/0.0008126, allocations: 86.11 kB / 0.671 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3635/0.3644, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.5453, allocations: 106.3 MB / 0.8847 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.929/4.475, allocations: 2.175 GB / 3.06 GB, free: 184 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/4.475, allocations: 82.95 kB / 3.06 GB, free: 184 MB / 0.8698 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.07252/4.548, allocations: 40.45 MB / 3.099 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/4.548, allocations: 12 kB / 3.099 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/4.548, allocations: 31.78 kB / 3.099 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/4.548, allocations: 223.1 kB / 3.1 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/4.548, allocations: 4 kB / 3.1 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/4.548, allocations: 4 kB / 3.1 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001315/4.548, allocations: 60.44 kB / 3.1 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/4.548, allocations: 92.05 kB / 3.1 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/4.548, allocations: 4 kB / 3.1 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/4.548, allocations: 0 / 3.1 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/4.548, allocations: 4 kB / 3.1 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005471/4.549, allocations: 421 kB / 3.1 GB, free: 150 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/4.549, allocations: 71.69 kB / 3.1 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.784e-05/4.549, allocations: 24.98 kB / 3.1 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/4.549, allocations: 4.562 kB / 3.1 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/4.549, allocations: 39.69 kB / 3.1 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/4.549, allocations: 0 / 3.1 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0001951/4.549, allocations: 80.23 kB / 3.1 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.531e-05/4.549, allocations: 51.41 kB / 3.1 GB, free: 149.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.781e-05/4.55, allocations: 142.2 kB / 3.1 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/4.55, allocations: 25.7 kB / 3.101 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.393e-05/4.55, allocations: 110.4 kB / 3.101 GB, free: 149.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/4.55, allocations: 22.95 kB / 3.101 GB, free: 149.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/4.55, allocations: 0 / 3.101 GB, free: 149.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.315e-05/4.55, allocations: 325.9 kB / 3.101 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.433e-05/4.55, allocations: 18.69 kB / 3.101 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.983e-05/4.55, allocations: 18 kB / 3.101 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.035e-05/4.55, allocations: 22.61 kB / 3.101 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/4.55, allocations: 0 / 3.101 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001141/4.55, allocations: 89.98 kB / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/4.55, allocations: 4 kB / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/4.55, allocations: 3.938 kB / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/4.55, allocations: 0 / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/4.55, allocations: 31.36 kB / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/4.55, allocations: 0 / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.745e-05/4.55, allocations: 15.89 kB / 3.101 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/4.55, allocations: 0 / 3.101 GB, free: 149 MB / 0.8698 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 5.139e-05/4.55, allocations: 105 kB / 3.101 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/4.55, allocations: 11.91 kB / 3.101 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/4.551, allocations: 93.83 kB / 3.101 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/4.551, allocations: 0 / 3.101 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/4.551, allocations: 0 / 3.101 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/4.551, allocations: 3.984 kB / 3.101 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/4.551, allocations: 190.2 kB / 3.102 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/4.551, allocations: 3.984 kB / 3.102 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/4.551, allocations: 23.31 kB / 3.102 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/4.551, allocations: 3.984 kB / 3.102 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/4.551, allocations: 3.906 kB / 3.102 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/4.551, allocations: 400 / 3.102 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/4.551, allocations: 0 / 3.102 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001269/4.551, allocations: 184 kB / 3.102 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002299/4.551, allocations: 0.5614 MB / 3.102 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.756e-05/4.551, allocations: 85.02 kB / 3.102 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/4.551, allocations: 7.922 kB / 3.102 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/4.551, allocations: 8 kB / 3.102 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/4.551, allocations: 11.89 kB / 3.102 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/4.551, allocations: 2.75 kB / 3.102 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.439e-05/4.552, allocations: 117.1 kB / 3.103 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009003/4.552, allocations: 93.98 kB / 3.103 GB, free: 147.5 MB / 0.8698 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.0006106/4.553, allocations: 0.6544 MB / 3.103 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001362/4.553, allocations: 52.5 kB / 3.103 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/4.553, allocations: 0 / 3.103 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.186e-05/4.553, allocations: 28.73 kB / 3.103 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/4.554, allocations: 24.73 kB / 3.103 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003957/4.554, allocations: 158.5 kB / 3.103 GB, free: 146.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/4.554, allocations: 0.7316 MB / 3.104 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of SimCode: time 2.61e-07/4.554, allocations: 4 kB / 3.104 GB, free: 145.9 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)