Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.557/2.557, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 186.8 kB / 0.4902 GB, free: 2.234 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.664/1.664, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 92.27 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000444/0.0004441, allocations: 7.844 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4103/0.4108, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.007/5.418, allocations: 1.929 GB / 3.158 GB, free: 52.22 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/5.419, allocations: 96.53 kB / 3.158 GB, free: 52.12 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.269/8.688, allocations: 0.9315 GB / 4.09 GB, free: 10.31 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.743e-06/8.688, allocations: 0 / 4.09 GB, free: 10.31 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002577/8.688, allocations: 35.98 kB / 4.09 GB, free: 10.27 MB / 1.167 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.006548/8.695, allocations: 1.756 MB / 4.091 GB, free: 8.461 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/8.695, allocations: 11.97 kB / 4.091 GB, free: 8.449 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003373/8.698, allocations: 414 kB / 4.092 GB, free: 8.043 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003692/8.702, allocations: 1.097 MB / 4.093 GB, free: 6.902 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/8.702, allocations: 62 kB / 4.093 GB, free: 6.844 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000389/8.702, allocations: 87.98 kB / 4.093 GB, free: 6.758 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/8.705, allocations: 0.8429 MB / 4.094 GB, free: 5.906 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/8.705, allocations: 0 / 4.094 GB, free: 5.906 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/8.705, allocations: 32 kB / 4.094 GB, free: 5.875 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.507e-05/8.705, allocations: 26 kB / 4.094 GB, free: 5.848 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/8.707, allocations: 0.7964 MB / 4.095 GB, free: 5.055 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006376/8.713, allocations: 3.67 MB / 4.098 GB, free: 1.09 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.9364/9.649, allocations: 1.109 MB / 4.099 GB, free: 220.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009569/9.65, allocations: 398.5 kB / 4.1 GB, free: 219.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/9.651, allocations: 42.73 kB / 4.1 GB, free: 219.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 5.791e-06/9.651, allocations: 0 / 4.1 GB, free: 219.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.003154/9.654, allocations: 1.012 MB / 4.101 GB, free: 219.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/9.654, allocations: 58.22 kB / 4.101 GB, free: 219.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/9.655, allocations: 0.7225 MB / 4.101 GB, free: 219.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 8.756e-05/9.655, allocations: 42.33 kB / 4.101 GB, free: 219.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004118/9.655, allocations: 480.5 kB / 4.102 GB, free: 219.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/9.656, allocations: 218 kB / 4.102 GB, free: 219.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/9.656, allocations: 12.78 kB / 4.102 GB, free: 219.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.828e-05/9.656, allocations: 326.7 kB / 4.102 GB, free: 218.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005196/9.656, allocations: 264.7 kB / 4.103 GB, free: 218.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006458/9.657, allocations: 410.4 kB / 4.103 GB, free: 218.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/9.658, allocations: 314.5 kB / 4.103 GB, free: 218.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/9.658, allocations: 2.969 kB / 4.103 GB, free: 218.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001609/9.659, allocations: 0.7585 MB / 4.104 GB, free: 218.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001815/9.659, allocations: 455.4 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/9.66, allocations: 1.547 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.329e-05/9.66, allocations: 8.578 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/9.66, allocations: 139 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/9.66, allocations: 4.531 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/9.662, allocations: 145.5 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.205e-05/9.662, allocations: 23.45 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/9.662, allocations: 3.406 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001527/9.663, allocations: 0.6453 MB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/9.663, allocations: 1.062 kB / 4.105 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/9.663, allocations: 3.953 kB / 4.106 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006454/9.664, allocations: 138.9 kB / 4.106 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/9.664, allocations: 4.453 kB / 4.106 GB, free: 218.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/9.665, allocations: 139.1 kB / 4.106 GB, free: 218.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.332e-05/9.665, allocations: 27.67 kB / 4.106 GB, free: 218.1 MB / 1.167 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 () * Number of clocked 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.001033/9.666, allocations: 387.5 kB / 4.106 GB, free: 217.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/9.667, allocations: 101.1 kB / 4.106 GB, free: 217.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001832/9.668, allocations: 0.794 MB / 4.107 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/9.668, allocations: 6.375 kB / 4.107 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/9.668, allocations: 1.719 kB / 4.107 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001439/9.67, allocations: 0.9598 MB / 4.108 GB, free: 217.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005281/9.675, allocations: 2.27 MB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/9.675, allocations: 3.375 kB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008189/9.676, allocations: 151.8 kB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.509e-05/9.676, allocations: 9.047 kB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/9.676, allocations: 21.48 kB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-05/9.676, allocations: 5.906 kB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/9.676, allocations: 11.8 kB / 4.11 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/9.679, allocations: 1.408 MB / 4.112 GB, free: 216.2 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000773/9.68, allocations: 257.4 kB / 4.112 GB, free: 216.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/9.68, allocations: 19.17 kB / 4.112 GB, free: 216.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/9.681, allocations: 134.5 kB / 4.112 GB, free: 216.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/9.681, allocations: 47.7 kB / 4.112 GB, free: 216.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.656e-05/9.681, allocations: 25.16 kB / 4.112 GB, free: 216.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001281/9.682, allocations: 0.575 MB / 4.113 GB, free: 216 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.31e-07/9.682, allocations: 0 / 4.113 GB, free: 216 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003315/9.686, allocations: 0.7674 MB / 4.114 GB, free: 215.9 MB / 1.167 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 () * Number of clocked 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.005563/9.691, allocations: 2.321 MB / 4.116 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00287/9.694, allocations: 0.9811 MB / 4.117 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/9.694, allocations: 4.875 kB / 4.117 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008356/9.695, allocations: 356.4 kB / 4.117 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/9.699, allocations: 0.6646 MB / 4.118 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/9.704, allocations: 2.635 MB / 4.12 GB, free: 214 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/9.705, allocations: 1.148 MB / 4.121 GB, free: 213.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002065/9.707, allocations: 295.1 kB / 4.122 GB, free: 213.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/9.708, allocations: 87.22 kB / 4.122 GB, free: 213.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.543e-06/9.708, allocations: 0 / 4.122 GB, free: 213.2 MB / 1.167 GB Notification: Performance of Templates: time 0.08174/9.79, allocations: 46.21 MB / 4.167 GB, free: 212.6 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches