Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.45/1.45, allocations: 285.5 MB / 292.8 MB, free: 9.859 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.0009615/0.0009616, allocations: 181.3 kB / 361.1 MB, free: 384 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.1 MB / 0.6195 GB, free: 2.969 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009232/0.0009233, allocations: 93.72 kB / 0.7326 GB, free: 1.113 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4133/0.4143, allocations: 121.4 MB / 0.8512 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.5925, allocations: 115.3 MB / 0.9638 GB, free: 56.3 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.641/4.234, allocations: 2.056 GB / 3.02 GB, free: 229.2 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/4.234, allocations: 89.42 kB / 3.02 GB, free: 229.1 MB / 0.9323 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.07304/4.307, allocations: 41.2 MB / 3.06 GB, free: 187.4 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/4.307, allocations: 8.5 kB / 3.06 GB, free: 187.4 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002431/4.308, allocations: 39.78 kB / 3.06 GB, free: 187.4 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/4.308, allocations: 206.8 kB / 3.06 GB, free: 187.1 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-06/4.308, allocations: 0 / 3.06 GB, free: 187.1 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/4.308, allocations: 8 kB / 3.06 GB, free: 187.1 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001281/4.308, allocations: 60.44 kB / 3.06 GB, free: 187 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/4.308, allocations: 98.39 kB / 3.06 GB, free: 186.9 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/4.308, allocations: 0 / 3.06 GB, free: 186.9 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/4.308, allocations: 0 / 3.06 GB, free: 186.9 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/4.308, allocations: 0 / 3.06 GB, free: 186.9 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005285/4.309, allocations: 420.7 kB / 3.061 GB, free: 186.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/4.309, allocations: 70.56 kB / 3.061 GB, free: 186.4 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/4.309, allocations: 24.92 kB / 3.061 GB, free: 186.4 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/4.309, allocations: 0 / 3.061 GB, free: 186.4 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/4.309, allocations: 46.55 kB / 3.061 GB, free: 186.3 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/4.309, allocations: 0 / 3.061 GB, free: 186.3 MB / 0.9323 GB Notification: Performance of matching and sorting (n=7): time 0.0001839/4.309, allocations: 77.78 kB / 3.061 GB, free: 186.2 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.716e-05/4.309, allocations: 55.34 kB / 3.061 GB, free: 186.2 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/4.309, allocations: 133.5 kB / 3.061 GB, free: 186 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/4.309, allocations: 29.64 kB / 3.061 GB, free: 186 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/4.309, allocations: 111.8 kB / 3.061 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/4.309, allocations: 23.66 kB / 3.061 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/4.309, allocations: 4 kB / 3.061 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 4.579e-05/4.309, allocations: 322.8 kB / 3.062 GB, free: 185.5 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.429e-05/4.309, allocations: 16 kB / 3.062 GB, free: 185.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.092e-05/4.31, allocations: 20 kB / 3.062 GB, free: 185.5 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.988e-05/4.31, allocations: 24.2 kB / 3.062 GB, free: 185.5 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/4.31, allocations: 0 / 3.062 GB, free: 185.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001139/4.31, allocations: 85.59 kB / 3.062 GB, free: 185.4 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/4.31, allocations: 7.906 kB / 3.062 GB, free: 185.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/4.31, allocations: 0 / 3.062 GB, free: 185.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/4.31, allocations: 4 kB / 3.062 GB, free: 185.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/4.31, allocations: 31.92 kB / 3.062 GB, free: 185.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/4.31, allocations: 0 / 3.062 GB, free: 185.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.394e-05/4.31, allocations: 8 kB / 3.062 GB, free: 185.3 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/4.31, allocations: 7.984 kB / 3.062 GB, free: 185.3 MB / 0.9323 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 4.927e-05/4.31, allocations: 108.9 kB / 3.062 GB, free: 185.2 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.112e-05/4.31, allocations: 7.906 kB / 3.062 GB, free: 185.2 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/4.31, allocations: 90.16 kB / 3.062 GB, free: 185.1 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/4.31, allocations: 4 kB / 3.062 GB, free: 185.1 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/4.31, allocations: 0 / 3.062 GB, free: 185.1 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/4.31, allocations: 3.938 kB / 3.062 GB, free: 185.1 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/4.31, allocations: 190 kB / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/4.31, allocations: 0 / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/4.311, allocations: 27.92 kB / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/4.311, allocations: 4 kB / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/4.311, allocations: 0 / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/4.311, allocations: 0 / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/4.311, allocations: 0 / 3.062 GB, free: 184.9 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001277/4.311, allocations: 183.3 kB / 3.062 GB, free: 184.7 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002146/4.311, allocations: 0.5626 MB / 3.063 GB, free: 184.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 2.772e-05/4.311, allocations: 92.92 kB / 3.063 GB, free: 184 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/4.311, allocations: 0 / 3.063 GB, free: 184 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/4.311, allocations: 11.98 kB / 3.063 GB, free: 184 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/4.311, allocations: 11.92 kB / 3.063 GB, free: 183.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/4.311, allocations: 4 kB / 3.063 GB, free: 183.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 5.197e-05/4.311, allocations: 111.4 kB / 3.063 GB, free: 183.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.0008769/4.312, allocations: 99.84 kB / 3.063 GB, free: 183.7 MB / 0.9323 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.0005991/4.313, allocations: 0.6518 MB / 3.064 GB, free: 183.1 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.0001185/4.313, allocations: 47.98 kB / 3.064 GB, free: 183 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/4.313, allocations: 0 / 3.064 GB, free: 183 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 4.387e-05/4.313, allocations: 31.94 kB / 3.064 GB, free: 183 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/4.313, allocations: 34.38 kB / 3.064 GB, free: 183 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004138/4.314, allocations: 155.3 kB / 3.064 GB, free: 182.8 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/4.314, allocations: 0.7231 MB / 3.065 GB, free: 182.1 MB / 0.9323 GB Notification: Performance of SimCode: time 2.4e-07/4.314, allocations: 0 / 3.065 GB, free: 182.1 MB / 0.9323 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)