Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7639/0.7639, allocations: 141.8 MB / 149.1 MB, free: 14.87 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 186 kB / 182 MB, free: 11.32 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 221.4 MB / 436 MB, free: 3.949 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009406/0.000941, allocations: 100.7 kB / 0.507 GB, free: 18.53 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001906/0.001906, allocations: 265.8 kB / 0.5885 GB, free: 5.277 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.667e-06/8.687e-06, allocations: 1.531 kB / 0.6759 GB, free: 138.3 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1904, allocations: 82.78 MB / 0.7567 GB, free: 86 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.681/3.872, allocations: 1.887 GB / 2.644 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/3.872, allocations: 87.94 kB / 2.644 GB, free: 108 MB / 0.6982 GB Notification: Performance of FrontEnd: time 3.712/7.584, allocations: 0.9291 GB / 3.573 GB, free: 97.37 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0002519/7.585, allocations: 32.58 kB / 3.573 GB, free: 97.37 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.006179/7.591, allocations: 1.537 MB / 3.575 GB, free: 96.96 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/7.591, allocations: 9.062 kB / 3.575 GB, free: 96.96 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003754/7.595, allocations: 415.5 kB / 3.575 GB, free: 96.89 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/7.598, allocations: 1.096 MB / 3.576 GB, free: 96.61 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.029e-05/7.598, allocations: 30.38 kB / 3.576 GB, free: 96.61 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003777/7.599, allocations: 50.47 kB / 3.576 GB, free: 96.61 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001943/7.601, allocations: 0.7433 MB / 3.577 GB, free: 96.61 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/7.602, allocations: 0.7294 MB / 3.578 GB, free: 96.55 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/7.602, allocations: 0 / 3.578 GB, free: 96.55 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/7.603, allocations: 0 / 3.578 GB, free: 96.55 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-05/7.603, allocations: 30.92 kB / 3.578 GB, free: 96.55 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00585/7.608, allocations: 3.782 MB / 3.581 GB, free: 94.87 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/7.61, allocations: 0.5868 MB / 3.582 GB, free: 94.84 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005141/7.61, allocations: 377.4 kB / 3.582 GB, free: 94.83 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008034/7.611, allocations: 0.6407 MB / 3.583 GB, free: 94.18 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/7.611, allocations: 41.62 kB / 3.583 GB, free: 94.14 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=60): time 2.845e-06/7.611, allocations: 0 / 3.583 GB, free: 94.14 MB / 0.7138 GB Notification: Performance of matching and sorting (n=60): time 0.002684/7.614, allocations: 0.9159 MB / 3.584 GB, free: 94.05 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/7.614, allocations: 55.69 kB / 3.584 GB, free: 93.98 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007855/7.614, allocations: 0.5918 MB / 3.585 GB, free: 93.87 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 6.173e-05/7.615, allocations: 29.67 kB / 3.585 GB, free: 93.84 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/7.615, allocations: 343.1 kB / 3.585 GB, free: 93.68 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/7.615, allocations: 203.9 kB / 3.585 GB, free: 93.57 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/7.615, allocations: 0 / 3.585 GB, free: 93.57 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 9.526e-05/7.615, allocations: 330.6 kB / 3.585 GB, free: 93.27 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/7.615, allocations: 238.2 kB / 3.586 GB, free: 93.27 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004425/7.616, allocations: 383.6 kB / 3.586 GB, free: 93.13 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006886/7.617, allocations: 389.9 kB / 3.586 GB, free: 93.12 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/7.617, allocations: 3.906 kB / 3.586 GB, free: 93.12 MB / 0.7138 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001341/7.618, allocations: 0.7781 MB / 3.587 GB, free: 93.03 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/7.618, allocations: 449.8 kB / 3.588 GB, free: 92.58 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/7.618, allocations: 2.188 kB / 3.588 GB, free: 92.58 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/7.618, allocations: 7.031 kB / 3.588 GB, free: 92.58 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006774/7.619, allocations: 136.7 kB / 3.588 GB, free: 92.58 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/7.619, allocations: 6.969 kB / 3.588 GB, free: 92.58 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/7.62, allocations: 117.5 kB / 3.588 GB, free: 92.57 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.753e-05/7.62, allocations: 23.06 kB / 3.588 GB, free: 92.57 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/7.62, allocations: 3.125 kB / 3.588 GB, free: 92.57 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001153/7.621, allocations: 0.651 MB / 3.589 GB, free: 92.55 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/7.621, allocations: 3.312 kB / 3.589 GB, free: 92.55 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-06/7.621, allocations: 5.953 kB / 3.589 GB, free: 92.55 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006025/7.622, allocations: 136.3 kB / 3.589 GB, free: 92.55 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/7.622, allocations: 6.094 kB / 3.589 GB, free: 92.55 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009952/7.623, allocations: 109.5 kB / 3.589 GB, free: 92.54 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.816e-05/7.623, allocations: 24.77 kB / 3.589 GB, free: 92.54 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0001775/7.623, allocations: 110.7 kB / 3.589 GB, free: 92.43 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/7.623, allocations: 97.5 kB / 3.589 GB, free: 92.38 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/7.625, allocations: 0.8156 MB / 3.59 GB, free: 92.32 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/7.625, allocations: 8.625 kB / 3.59 GB, free: 92.32 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/7.625, allocations: 3.609 kB / 3.59 GB, free: 92.32 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001185/7.626, allocations: 0.9776 MB / 3.591 GB, free: 91.87 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003689/7.63, allocations: 1.994 MB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/7.63, allocations: 3.844 kB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007812/7.631, allocations: 157.2 kB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/7.631, allocations: 8.438 kB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.518e-05/7.631, allocations: 14.69 kB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/7.631, allocations: 8.438 kB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/7.631, allocations: 8.781 kB / 3.593 GB, free: 91.46 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001924/7.633, allocations: 1.436 MB / 3.594 GB, free: 90.94 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004981/7.633, allocations: 252 kB / 3.595 GB, free: 90.8 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/7.633, allocations: 20.2 kB / 3.595 GB, free: 90.8 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/7.634, allocations: 119.8 kB / 3.595 GB, free: 90.79 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/7.635, allocations: 41.41 kB / 3.595 GB, free: 90.79 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/7.635, allocations: 22 kB / 3.595 GB, free: 90.79 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0006187/7.635, allocations: 474.2 kB / 3.595 GB, free: 90.7 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002156/7.637, allocations: 0.6939 MB / 3.596 GB, free: 90.66 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.U,spl.vol.dynBal.m,spl.vol.dynBal.mXi[1],senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.003892/7.641, allocations: 2.591 MB / 3.598 GB, free: 89.84 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001672/7.643, allocations: 0.9331 MB / 3.599 GB, free: 89.83 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/7.643, allocations: 4.125 kB / 3.599 GB, free: 89.83 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0004708/7.644, allocations: 327.9 kB / 3.6 GB, free: 89.83 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/7.647, allocations: 0.592 MB / 3.6 GB, free: 89.81 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/7.651, allocations: 1.726 MB / 3.602 GB, free: 89.33 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009426/7.652, allocations: 1.235 MB / 3.603 GB, free: 88.61 MB / 0.7138 GB Notification: Performance of SimCode: time 1.042e-06/7.652, allocations: 2.25 kB / 3.603 GB, free: 88.61 MB / 0.7138 GB Notification: Performance of Templates: time 0.06374/7.715, allocations: 35.17 MB / 3.637 GB, free: 87.94 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)