Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.574/1.574, allocations: 289.8 MB / 297.1 MB, free: 12.63 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001191/0.001191, allocations: 182.4 kB / 366.3 MB, free: 11.96 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.1 MB / 0.6256 GB, free: 2.055 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009925/0.0009927, allocations: 80.77 kB / 0.7395 GB, free: 47.02 MB / 0.5183 GB Notification: Performance of FrontEnd - loaded program: time 1.448e-05/1.459e-05, allocations: 4 kB / 0.859 GB, free: 7.227 MB / 0.5964 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7466/0.7466, allocations: 116.3 MB / 0.9725 GB, free: 81.48 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.003/4.749, allocations: 2.082 GB / 3.055 GB, free: 16.37 MB / 0.9402 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/4.749, allocations: 89.64 kB / 3.055 GB, free: 16.28 MB / 0.9402 GB Notification: Performance of FrontEnd: time 3.37/8.12, allocations: 0.9169 GB / 3.972 GB, free: 151.5 MB / 0.9402 GB Notification: Performance of Transformations before backend: time 0.0001532/8.12, allocations: 39.12 kB / 3.972 GB, free: 151.5 MB / 0.9402 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.003824/8.124, allocations: 1.527 MB / 3.973 GB, free: 150.4 MB / 0.9402 GB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/8.124, allocations: 10.38 kB / 3.973 GB, free: 150.4 MB / 0.9402 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/8.127, allocations: 423 kB / 3.974 GB, free: 150.2 MB / 0.9402 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002467/8.13, allocations: 1.085 MB / 3.975 GB, free: 149.5 MB / 0.9402 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/8.13, allocations: 31.17 kB / 3.975 GB, free: 149.5 MB / 0.9402 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/8.13, allocations: 64.81 kB / 3.975 GB, free: 149.4 MB / 0.9402 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001378/8.131, allocations: 0.7335 MB / 3.976 GB, free: 149.1 MB / 0.9402 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/8.132, allocations: 0.7299 MB / 3.976 GB, free: 148.7 MB / 0.9402 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.17e-05/8.133, allocations: 0 / 3.976 GB, free: 148.7 MB / 0.9402 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.789e-05/8.133, allocations: 3.891 kB / 3.976 GB, free: 148.7 MB / 0.9402 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.427e-05/8.133, allocations: 32.03 kB / 3.976 GB, free: 148.7 MB / 0.9402 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005776/8.138, allocations: 3.79 MB / 3.98 GB, free: 145.6 MB / 0.9402 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/8.14, allocations: 0.5787 MB / 3.981 GB, free: 145.3 MB / 0.9402 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000569/8.14, allocations: 373.1 kB / 3.981 GB, free: 145.1 MB / 0.9402 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00091/8.141, allocations: 0.6449 MB / 3.982 GB, free: 144.4 MB / 0.9402 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/8.141, allocations: 38.38 kB / 3.982 GB, free: 144.4 MB / 0.9402 GB Notification: Performance of pre-optimization done (n=60): time 3.476e-06/8.141, allocations: 0 / 3.982 GB, free: 144.4 MB / 0.9402 GB Notification: Performance of matching and sorting (n=60): time 0.003182/8.144, allocations: 0.9123 MB / 3.983 GB, free: 143.9 MB / 0.9402 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/8.145, allocations: 59.91 kB / 3.983 GB, free: 143.8 MB / 0.9402 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009536/8.146, allocations: 0.5947 MB / 3.983 GB, free: 143.2 MB / 0.9402 GB Notification: Performance of collectPreVariables (initialization): time 7.132e-05/8.146, allocations: 25.7 kB / 3.983 GB, free: 143.2 MB / 0.9402 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/8.146, allocations: 342.8 kB / 3.984 GB, free: 142.8 MB / 0.9402 GB Notification: Performance of collectInitialBindings (initialization): time 0.000213/8.146, allocations: 208.9 kB / 3.984 GB, free: 142.6 MB / 0.9402 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/8.146, allocations: 0 / 3.984 GB, free: 142.6 MB / 0.9402 GB Notification: Performance of setup shared object (initialization): time 0.0001306/8.146, allocations: 326 kB / 3.984 GB, free: 142.3 MB / 0.9402 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/8.147, allocations: 240.7 kB / 3.984 GB, free: 142.1 MB / 0.9402 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/8.147, allocations: 379.8 kB / 3.985 GB, free: 141.6 MB / 0.9402 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007327/8.148, allocations: 394.1 kB / 3.985 GB, free: 141.2 MB / 0.9402 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/8.148, allocations: 0 / 3.985 GB, free: 141.2 MB / 0.9402 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001375/8.149, allocations: 0.7787 MB / 3.986 GB, free: 140.5 MB / 0.9402 GB Notification: Performance of prepare postOptimizeDAE: time 0.000151/8.149, allocations: 452.6 kB / 3.986 GB, free: 140 MB / 0.9402 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/8.149, allocations: 7.844 kB / 3.986 GB, free: 140 MB / 0.9402 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.91e-05/8.149, allocations: 4 kB / 3.986 GB, free: 140 MB / 0.9402 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/8.15, allocations: 135.5 kB / 3.986 GB, free: 139.9 MB / 0.9402 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/8.15, allocations: 4 kB / 3.986 GB, free: 139.9 MB / 0.9402 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/8.151, allocations: 108.8 kB / 3.987 GB, free: 139.8 MB / 0.9402 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/8.151, allocations: 35.48 kB / 3.987 GB, free: 139.7 MB / 0.9402 GB Notification: Performance of prepare postOptimizeDAE: time 8.766e-06/8.152, allocations: 4 kB / 3.987 GB, free: 139.7 MB / 0.9402 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/8.153, allocations: 0.6426 MB / 3.987 GB, free: 139.1 MB / 0.9402 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/8.153, allocations: 3.719 kB / 3.987 GB, free: 139.1 MB / 0.9402 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.163e-06/8.153, allocations: 7.938 kB / 3.987 GB, free: 139.1 MB / 0.9402 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/8.153, allocations: 135.8 kB / 3.987 GB, free: 138.9 MB / 0.9402 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/8.153, allocations: 4 kB / 3.987 GB, free: 138.9 MB / 0.9402 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/8.154, allocations: 113.2 kB / 3.987 GB, free: 138.8 MB / 0.9402 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-05/8.154, allocations: 27.81 kB / 3.987 GB, free: 138.8 MB / 0.9402 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.0001686/8.155, allocations: 112.9 kB / 3.988 GB, free: 138.7 MB / 0.9402 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/8.155, allocations: 101.7 kB / 3.988 GB, free: 138.6 MB / 0.9402 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/8.156, allocations: 0.8098 MB / 3.988 GB, free: 137.8 MB / 0.9402 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/8.156, allocations: 8 kB / 3.988 GB, free: 137.8 MB / 0.9402 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/8.156, allocations: 0 / 3.988 GB, free: 137.8 MB / 0.9402 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001206/8.158, allocations: 0.9783 MB / 3.989 GB, free: 136.7 MB / 0.9402 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/8.161, allocations: 1.997 MB / 3.991 GB, free: 134.6 MB / 0.9402 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/8.161, allocations: 15.83 kB / 3.991 GB, free: 134.6 MB / 0.9402 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007477/8.162, allocations: 147.8 kB / 3.992 GB, free: 134.5 MB / 0.9402 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/8.162, allocations: 8 kB / 3.992 GB, free: 134.5 MB / 0.9402 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.152e-05/8.162, allocations: 23.39 kB / 3.992 GB, free: 134.5 MB / 0.9402 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/8.162, allocations: 4 kB / 3.992 GB, free: 134.5 MB / 0.9402 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/8.162, allocations: 4 kB / 3.992 GB, free: 134.5 MB / 0.9402 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001815/8.164, allocations: 1.431 MB / 3.993 GB, free: 132.9 MB / 0.9402 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005425/8.164, allocations: 251.8 kB / 3.993 GB, free: 132.6 MB / 0.9402 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/8.165, allocations: 11.89 kB / 3.993 GB, free: 132.6 MB / 0.9402 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/8.166, allocations: 126.1 kB / 3.993 GB, free: 132.5 MB / 0.9402 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/8.166, allocations: 43.31 kB / 3.993 GB, free: 132.5 MB / 0.9402 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/8.166, allocations: 20 kB / 3.993 GB, free: 132.4 MB / 0.9402 GB Notification: Performance of sort global known variables: time 0.0005886/8.166, allocations: 475.1 kB / 3.994 GB, free: 132 MB / 0.9402 GB Notification: Performance of remove unused functions: time 0.002068/8.168, allocations: 0.6974 MB / 3.995 GB, free: 131.3 MB / 0.9402 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.003567/8.172, allocations: 2.578 MB / 3.997 GB, free: 129.1 MB / 0.9402 GB Notification: Performance of simCode: created initialization part: time 0.001422/8.173, allocations: 0.9385 MB / 3.998 GB, free: 128.2 MB / 0.9402 GB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/8.173, allocations: 3.312 kB / 3.998 GB, free: 128.2 MB / 0.9402 GB Notification: Performance of simCode: created simulation system equations: time 0.0003977/8.174, allocations: 325.4 kB / 3.998 GB, free: 127.9 MB / 0.9402 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/8.177, allocations: 0.5964 MB / 3.999 GB, free: 127.3 MB / 0.9402 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/8.18, allocations: 1.729 MB / 4.001 GB, free: 125.7 MB / 0.9402 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009424/8.181, allocations: 1.234 MB / 4.002 GB, free: 124.4 MB / 0.9402 GB Notification: Performance of SimCode: time 2.405e-06/8.181, allocations: 0 / 4.002 GB, free: 124.4 MB / 0.9402 GB Notification: Performance of Templates: time 0.05668/8.238, allocations: 35.13 MB / 4.036 GB, free: 90.04 MB / 0.9402 GB make -j1 -f Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)