Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction") translateModel(IBPSA.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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/Complex 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 188.9 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4598/0.4598, allocations: 90.86 MB / 99.08 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.19/1.19, allocations: 221.4 MB / 342.7 MB, free: 5.422 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008569/0.000857, allocations: 96.39 kB / 415.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 7.915e-06/7.935e-06, allocations: 4 kB / 493.9 MB, free: 8.074 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.339, allocations: 72.29 MB / 0.5529 GB, free: 73.49 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.79/4.129, allocations: 1.881 GB / 2.433 GB, free: 181.2 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/4.129, allocations: 87.95 kB / 2.433 GB, free: 181.1 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.227/7.355, allocations: 0.9311 GB / 3.365 GB, free: 74.8 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0001297/7.356, allocations: 40.05 kB / 3.365 GB, free: 74.8 MB / 0.6198 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.003659/7.359, allocations: 1.539 MB / 3.366 GB, free: 74.12 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/7.359, allocations: 9.781 kB / 3.366 GB, free: 74.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003097/7.362, allocations: 419 kB / 3.367 GB, free: 74.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/7.365, allocations: 1.111 MB / 3.368 GB, free: 73.76 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/7.365, allocations: 25.28 kB / 3.368 GB, free: 73.76 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/7.365, allocations: 52.22 kB / 3.368 GB, free: 73.76 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001274/7.366, allocations: 0.7379 MB / 3.368 GB, free: 73.76 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/7.367, allocations: 0.733 MB / 3.369 GB, free: 73.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/7.368, allocations: 2.516 kB / 3.369 GB, free: 73.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.166e-05/7.368, allocations: 1.688 kB / 3.369 GB, free: 73.71 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.52e-05/7.368, allocations: 27.47 kB / 3.369 GB, free: 73.7 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004896/7.373, allocations: 3.999 MB / 3.373 GB, free: 71.85 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000905/7.373, allocations: 0.5741 MB / 3.374 GB, free: 71.82 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004147/7.374, allocations: 370.5 kB / 3.374 GB, free: 71.81 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007042/7.375, allocations: 0.6462 MB / 3.375 GB, free: 71.15 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/7.375, allocations: 39.47 kB / 3.375 GB, free: 71.11 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=60): time 2.675e-06/7.375, allocations: 0 / 3.375 GB, free: 71.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=60): time 0.002529/7.377, allocations: 0.9116 MB / 3.376 GB, free: 71.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/7.377, allocations: 57.5 kB / 3.376 GB, free: 70.96 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007065/7.378, allocations: 0.605 MB / 3.376 GB, free: 70.84 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.89e-05/7.378, allocations: 32.61 kB / 3.376 GB, free: 70.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/7.378, allocations: 331.1 kB / 3.377 GB, free: 70.65 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/7.378, allocations: 204.9 kB / 3.377 GB, free: 70.55 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/7.378, allocations: 0 / 3.377 GB, free: 70.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.975e-05/7.378, allocations: 332.8 kB / 3.377 GB, free: 70.24 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/7.379, allocations: 241.2 kB / 3.377 GB, free: 70.24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/7.379, allocations: 382.3 kB / 3.378 GB, free: 70.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006782/7.38, allocations: 379.8 kB / 3.378 GB, free: 70.1 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/7.38, allocations: 2.75 kB / 3.378 GB, free: 70.1 MB / 0.6198 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001232/7.381, allocations: 0.7775 MB / 3.379 GB, free: 70.01 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/7.381, allocations: 457.2 kB / 3.379 GB, free: 69.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/7.381, allocations: 0 / 3.379 GB, free: 69.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/7.381, allocations: 3.781 kB / 3.379 GB, free: 69.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006685/7.382, allocations: 145.9 kB / 3.379 GB, free: 69.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/7.382, allocations: 5.469 kB / 3.379 GB, free: 69.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/7.383, allocations: 119.9 kB / 3.379 GB, free: 69.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.752e-05/7.383, allocations: 23.97 kB / 3.379 GB, free: 69.54 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/7.383, allocations: 3.938 kB / 3.379 GB, free: 69.54 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/7.384, allocations: 0.6532 MB / 3.38 GB, free: 69.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/7.384, allocations: 3.906 kB / 3.38 GB, free: 69.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.582e-06/7.384, allocations: 3.781 kB / 3.38 GB, free: 69.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006049/7.385, allocations: 133.7 kB / 3.38 GB, free: 69.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/7.385, allocations: 5.344 kB / 3.38 GB, free: 69.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/7.386, allocations: 125.6 kB / 3.38 GB, free: 69.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.578e-05/7.386, allocations: 22.59 kB / 3.38 GB, free: 69.51 MB / 0.6198 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.0001597/7.386, allocations: 117 kB / 3.381 GB, free: 69.41 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/7.386, allocations: 95.72 kB / 3.381 GB, free: 69.36 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/7.388, allocations: 0.8161 MB / 3.381 GB, free: 69.29 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/7.388, allocations: 7.844 kB / 3.381 GB, free: 69.29 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/7.388, allocations: 3.906 kB / 3.381 GB, free: 69.29 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001044/7.389, allocations: 0.9798 MB / 3.382 GB, free: 68.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/7.392, allocations: 2.001 MB / 3.384 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/7.392, allocations: 0 / 3.384 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/7.393, allocations: 160 kB / 3.384 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/7.393, allocations: 3.812 kB / 3.384 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/7.393, allocations: 14.88 kB / 3.384 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/7.393, allocations: 13.09 kB / 3.385 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/7.393, allocations: 3.188 kB / 3.385 GB, free: 68.43 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00166/7.395, allocations: 1.377 MB / 3.386 GB, free: 67.91 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004822/7.395, allocations: 261 kB / 3.386 GB, free: 67.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/7.395, allocations: 11.14 kB / 3.386 GB, free: 67.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009972/7.396, allocations: 115.7 kB / 3.386 GB, free: 67.77 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/7.397, allocations: 49.78 kB / 3.386 GB, free: 67.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/7.397, allocations: 24.11 kB / 3.386 GB, free: 67.76 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0005543/7.397, allocations: 480.2 kB / 3.387 GB, free: 67.67 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001784/7.399, allocations: 0.6862 MB / 3.387 GB, free: 67.6 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,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.00323/7.402, allocations: 2.596 MB / 3.39 GB, free: 66.76 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001492/7.404, allocations: 0.9435 MB / 3.391 GB, free: 66.74 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/7.404, allocations: 0 / 3.391 GB, free: 66.74 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004052/7.404, allocations: 325.3 kB / 3.391 GB, free: 66.74 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003166/7.407, allocations: 0.5904 MB / 3.392 GB, free: 66.72 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/7.411, allocations: 1.745 MB / 3.393 GB, free: 66.22 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008647/7.412, allocations: 1.238 MB / 3.395 GB, free: 65.51 MB / 0.6198 GB Notification: Performance of SimCode: time 1.192e-06/7.412, allocations: 2.812 kB / 3.395 GB, free: 65.51 MB / 0.6198 GB Notification: Performance of Templates: time 0.05258/7.464, allocations: 35.19 MB / 3.429 GB, free: 63.73 MB / 0.6198 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.sim & ./IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)