Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.186/1.186, allocations: 249.4 MB / 256.7 MB, free: 7.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001023/0.001023, allocations: 181.3 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.039/1.039, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008942/0.0008942, allocations: 87.27 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.471e-06/5.491e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1477, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.235/3.383, allocations: 2.201 GB / 3.085 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/3.383, allocations: 86.25 kB / 3.085 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.371/5.755, allocations: 0.8896 GB / 3.975 GB, free: 138.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.635e-05/5.755, allocations: 41.98 kB / 3.975 GB, free: 138.9 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002602/5.758, allocations: 1.525 MB / 3.976 GB, free: 138.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/5.758, allocations: 10.47 kB / 3.976 GB, free: 138.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002437/5.76, allocations: 425.6 kB / 3.977 GB, free: 138.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/5.762, allocations: 1.098 MB / 3.978 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/5.762, allocations: 28.97 kB / 3.978 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/5.762, allocations: 54 kB / 3.978 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001075/5.763, allocations: 0.74 MB / 3.979 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/5.764, allocations: 0.7402 MB / 3.979 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/5.764, allocations: 0 / 3.979 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.881e-05/5.764, allocations: 0 / 3.979 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/5.764, allocations: 28.44 kB / 3.98 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003802/5.768, allocations: 3.815 MB / 3.983 GB, free: 136.4 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/5.769, allocations: 0.5908 MB / 3.984 GB, free: 136.3 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003955/5.769, allocations: 360.4 kB / 3.984 GB, free: 136.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006515/5.77, allocations: 0.6443 MB / 3.985 GB, free: 135.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/5.77, allocations: 41.03 kB / 3.985 GB, free: 135.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 1.814e-06/5.77, allocations: 0 / 3.985 GB, free: 135.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.002255/5.772, allocations: 0.9083 MB / 3.986 GB, free: 135.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/5.772, allocations: 60.56 kB / 3.986 GB, free: 135.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006061/5.773, allocations: 0.6019 MB / 3.986 GB, free: 135.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.717e-05/5.773, allocations: 25.7 kB / 3.986 GB, free: 135.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/5.773, allocations: 339 kB / 3.987 GB, free: 135.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/5.773, allocations: 210 kB / 3.987 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/5.773, allocations: 3.844 kB / 3.987 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.225e-05/5.773, allocations: 332.5 kB / 3.987 GB, free: 134.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/5.774, allocations: 238.1 kB / 3.987 GB, free: 134.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003539/5.774, allocations: 376.5 kB / 3.988 GB, free: 134.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006041/5.775, allocations: 380.8 kB / 3.988 GB, free: 134.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/5.775, allocations: 2.938 kB / 3.988 GB, free: 134.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001108/5.776, allocations: 0.7666 MB / 3.989 GB, free: 134.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/5.776, allocations: 457.9 kB / 3.989 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/5.776, allocations: 0 / 3.989 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/5.776, allocations: 3.531 kB / 3.989 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/5.777, allocations: 147 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/5.777, allocations: 0 / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009791/5.778, allocations: 115 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-05/5.778, allocations: 26.84 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.58e-06/5.778, allocations: 3.375 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009786/5.779, allocations: 0.6423 MB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-06/5.779, allocations: 3.938 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.388e-06/5.779, allocations: 0 / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005737/5.779, allocations: 139.5 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/5.779, allocations: 5.906 kB / 3.99 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008521/5.78, allocations: 113.3 kB / 3.991 GB, free: 134 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-05/5.78, allocations: 19.97 kB / 3.991 GB, free: 134 MB / 0.8855 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.0001265/5.78, allocations: 127.1 kB / 3.991 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/5.78, allocations: 97.97 kB / 3.991 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/5.782, allocations: 0.7965 MB / 3.992 GB, free: 133.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/5.782, allocations: 6.094 kB / 3.992 GB, free: 133.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/5.782, allocations: 0 / 3.992 GB, free: 133.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009643/5.783, allocations: 0.9707 MB / 3.992 GB, free: 133.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/5.786, allocations: 2.005 MB / 3.994 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/5.786, allocations: 3.812 kB / 3.994 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007348/5.786, allocations: 157.9 kB / 3.995 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/5.786, allocations: 7.656 kB / 3.995 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.31e-05/5.787, allocations: 10.05 kB / 3.995 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/5.787, allocations: 12.44 kB / 3.995 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/5.787, allocations: 3.438 kB / 3.995 GB, free: 133 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001573/5.788, allocations: 1.429 MB / 3.996 GB, free: 132.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004469/5.789, allocations: 264.8 kB / 3.996 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/5.789, allocations: 6.922 kB / 3.996 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/5.79, allocations: 123.8 kB / 3.996 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/5.79, allocations: 48.58 kB / 3.996 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.272e-05/5.79, allocations: 24.22 kB / 3.996 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0005289/5.79, allocations: 479.8 kB / 3.997 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001799/5.792, allocations: 0.7015 MB / 3.998 GB, free: 132.2 MB / 0.8855 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.002795/5.795, allocations: 2.594 MB / 4 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001277/5.796, allocations: 0.9191 MB / 4.001 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/5.796, allocations: 6.438 kB / 4.001 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003638/5.797, allocations: 325 kB / 4.001 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/5.799, allocations: 0.5968 MB / 4.002 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/5.802, allocations: 1.736 MB / 4.004 GB, free: 130.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007267/5.803, allocations: 1.243 MB / 4.005 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of SimCode: time 3.91e-07/5.803, allocations: 0 / 4.005 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.0438/5.847, allocations: 35.25 MB / 4.039 GB, free: 129.4 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches