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: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") [: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.606/1.606, allocations: 289.8 MB / 297.1 MB, free: 6.703 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.001793/0.001793, allocations: 189.2 kB / 366.3 MB, free: 2.012 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.717/1.717, allocations: 205.1 MB / 0.6256 GB, free: 7.586 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.0009345/0.0009346, allocations: 89.7 kB / 0.7396 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.125e-05/1.147e-05, allocations: 4 kB / 0.859 GB, free: 13.63 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8599/0.8599, allocations: 116.3 MB / 0.9725 GB, free: 75.9 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.89, allocations: 407.5 MB / 1.371 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004068/1.891, allocations: 91.73 kB / 1.371 GB, free: 144.2 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.426/3.317, allocations: 434.2 MB / 1.795 GB, free: 192.6 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001624/3.317, allocations: 33 kB / 1.795 GB, free: 192.5 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003309/3.32, allocations: 1.25 MB / 1.796 GB, free: 191.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/3.32, allocations: 8.031 kB / 1.796 GB, free: 191.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008126/3.321, allocations: 134.5 kB / 1.796 GB, free: 191.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02798/3.349, allocations: 12.74 MB / 1.808 GB, free: 178.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/3.349, allocations: 20.62 kB / 1.808 GB, free: 178.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/3.35, allocations: 47.94 kB / 1.809 GB, free: 178.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001137/3.351, allocations: 451.9 kB / 1.809 GB, free: 177.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/3.352, allocations: 0.6345 MB / 1.81 GB, free: 177.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/3.352, allocations: 4 kB / 1.81 GB, free: 177.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.06e-05/3.352, allocations: 7.891 kB / 1.81 GB, free: 177.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/3.352, allocations: 25.3 kB / 1.81 GB, free: 177.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004855/3.357, allocations: 3.541 MB / 1.813 GB, free: 173.5 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004148/3.357, allocations: 201.8 kB / 1.813 GB, free: 173.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/3.358, allocations: 151.3 kB / 1.813 GB, free: 173.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004371/3.358, allocations: 0.6683 MB / 1.814 GB, free: 172.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/3.358, allocations: 34.56 kB / 1.814 GB, free: 172.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=31): time 2.986e-06/3.358, allocations: 0 / 1.814 GB, free: 172.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=31): time 0.0009042/3.359, allocations: 353.6 kB / 1.814 GB, free: 171.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.144e-05/3.359, allocations: 59.39 kB / 1.814 GB, free: 171.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/3.36, allocations: 0.6414 MB / 1.815 GB, free: 171.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/3.36, allocations: 25.7 kB / 1.815 GB, free: 171.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/3.36, allocations: 378.8 kB / 1.815 GB, free: 170.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.731e-05/3.36, allocations: 110.5 kB / 1.816 GB, free: 170.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/3.36, allocations: 0 / 1.816 GB, free: 170.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.64e-05/3.36, allocations: 322 kB / 1.816 GB, free: 170.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/3.36, allocations: 117 kB / 1.816 GB, free: 170.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/3.361, allocations: 343.3 kB / 1.816 GB, free: 169.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003455/3.361, allocations: 188.6 kB / 1.817 GB, free: 169.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/3.361, allocations: 4 kB / 1.817 GB, free: 169.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0006871/3.362, allocations: 496 kB / 1.817 GB, free: 169.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/3.362, allocations: 8 kB / 1.817 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/3.362, allocations: 4 kB / 1.817 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/3.362, allocations: 8 kB / 1.817 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003856/3.362, allocations: 124.2 kB / 1.817 GB, free: 169 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/3.362, allocations: 13.19 kB / 1.817 GB, free: 169 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006574/3.363, allocations: 83.42 kB / 1.817 GB, free: 168.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/3.363, allocations: 35.89 kB / 1.817 GB, free: 168.9 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 9.372e-05/3.363, allocations: 116.9 kB / 1.817 GB, free: 168.8 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/3.363, allocations: 86.97 kB / 1.817 GB, free: 168.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007288/3.364, allocations: 436.7 kB / 1.818 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/3.364, allocations: 4 kB / 1.818 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/3.364, allocations: 0 / 1.818 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004592/3.364, allocations: 408.6 kB / 1.818 GB, free: 167.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001485/3.366, allocations: 1.22 MB / 1.819 GB, free: 166.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/3.366, allocations: 3.938 kB / 1.819 GB, free: 166.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/3.366, allocations: 89.09 kB / 1.82 GB, free: 166.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/3.366, allocations: 4 kB / 1.82 GB, free: 166.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/3.366, allocations: 8 kB / 1.82 GB, free: 166.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/3.366, allocations: 0 / 1.82 GB, free: 166.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/3.366, allocations: 7.906 kB / 1.82 GB, free: 166.4 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008028/3.367, allocations: 0.7477 MB / 1.82 GB, free: 165.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/3.367, allocations: 227.9 kB / 1.821 GB, free: 165.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/3.367, allocations: 8 kB / 1.821 GB, free: 165.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/3.368, allocations: 52.56 kB / 1.821 GB, free: 165.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/3.368, allocations: 23.88 kB / 1.821 GB, free: 165.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/3.368, allocations: 19.98 kB / 1.821 GB, free: 165.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0004707/3.368, allocations: 499.1 kB / 1.821 GB, free: 164.8 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001066/3.37, allocations: 363.2 kB / 1.821 GB, free: 164.4 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.0008822/3.37, allocations: 0.5578 MB / 1.822 GB, free: 163.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004729/3.371, allocations: 341.8 kB / 1.822 GB, free: 163.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/3.371, allocations: 3.938 kB / 1.822 GB, free: 163.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/3.371, allocations: 169 kB / 1.822 GB, free: 163.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/3.373, allocations: 464.4 kB / 1.823 GB, free: 163 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/3.375, allocations: 1.178 MB / 1.824 GB, free: 161.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005667/3.376, allocations: 1.141 MB / 1.825 GB, free: 160.6 MB / 0.948 GB Notification: Performance of SimCode: time 3.51e-07/3.376, allocations: 0 / 1.825 GB, free: 160.6 MB / 0.948 GB Notification: Performance of Templates: time 0.02598/3.402, allocations: 17.17 MB / 1.842 GB, free: 143.6 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (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 & ./Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)