Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json 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/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009864/0.0009865, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 176.6 kB / 16.92 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.598/2.598, allocations: 437.8 MB / 0.7128 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.0003821, allocations: 8 kB / 0.8735 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.641/0.6414, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.9105/1.552, allocations: 234.6 MB / 1.253 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01246/1.564, allocations: 7.22 MB / 1.26 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00238/1.567, allocations: 44.56 kB / 1.26 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002324/1.569, allocations: 0.5878 MB / 1.26 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.007014/1.576, allocations: 1.944 MB / 1.262 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.006468/1.583, allocations: 1.861 MB / 1.264 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.008078/1.591, allocations: 4.44 MB / 1.268 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002433/1.593, allocations: 0.9239 MB / 1.269 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00508/1.598, allocations: 1.565 MB / 1.271 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003068/1.602, allocations: 0.9556 MB / 1.272 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004891/1.602, allocations: 53.25 kB / 1.272 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006715/1.609, allocations: 2.825 MB / 1.275 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0009775/1.61, allocations: 385.6 kB / 1.275 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001982/1.612, allocations: 0.6567 MB / 1.276 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003813/1.616, allocations: 1.94 MB / 1.278 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/1.616, allocations: 0 / 1.278 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.804e-06/1.616, allocations: 0 / 1.278 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.151e-05/1.616, allocations: 0 / 1.278 GB, free: 7.77 MB / 0.9825 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.003931/1.62, allocations: 1.472 MB / 1.279 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/1.62, allocations: 8.406 kB / 1.279 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00305/1.623, allocations: 430.3 kB / 1.279 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002113/1.625, allocations: 0.9661 MB / 1.28 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/1.625, allocations: 65.78 kB / 1.28 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/1.625, allocations: 80.81 kB / 1.28 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/1.627, allocations: 0.8762 MB / 1.281 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/1.627, allocations: 3 kB / 1.281 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.123e-05/1.627, allocations: 31.56 kB / 1.281 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.303e-05/1.627, allocations: 28.91 kB / 1.281 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/1.629, allocations: 0.8302 MB / 1.282 GB, free: 6.391 MB / 0.9825 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.005003/1.634, allocations: 3.652 MB / 1.286 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/1.635, allocations: 1.102 MB / 1.287 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005563/1.636, allocations: 376 kB / 1.287 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006256/1.636, allocations: 425.5 kB / 1.288 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/1.636, allocations: 41.41 kB / 1.288 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.465e-06/1.636, allocations: 3.594 kB / 1.288 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002137/1.639, allocations: 0.9862 MB / 1.289 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/1.639, allocations: 61.52 kB / 1.289 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/1.64, allocations: 0.8354 MB / 1.289 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.216e-05/1.64, allocations: 39.58 kB / 1.29 GB, free: 3.371 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/1.64, allocations: 486.3 kB / 1.29 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/1.64, allocations: 206.7 kB / 1.29 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.628e-05/1.641, allocations: 55.77 kB / 1.29 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 5.29e-05/1.641, allocations: 328.2 kB / 1.291 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004598/1.641, allocations: 256.9 kB / 1.291 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005258/1.642, allocations: 383.8 kB / 1.291 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009743/1.643, allocations: 0.6032 MB / 1.292 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/1.643, allocations: 8.797 kB / 1.292 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001398/1.644, allocations: 0.7614 MB / 1.293 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.428e-05/1.644, allocations: 119.6 kB / 1.293 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/1.644, allocations: 6.922 kB / 1.293 GB, free: 2.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/1.644, allocations: 3.219 kB / 1.293 GB, free: 2.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006063/1.645, allocations: 133.3 kB / 1.293 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/1.645, allocations: 9.375 kB / 1.293 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/1.646, allocations: 138.3 kB / 1.293 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.02e-05/1.646, allocations: 21.69 kB / 1.293 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/1.646, allocations: 5.125 kB / 1.293 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001097/1.647, allocations: 0.6245 MB / 1.294 GB, free: 2.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/1.647, allocations: 0 / 1.294 GB, free: 2.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.387e-06/1.647, allocations: 10.09 kB / 1.294 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/1.648, allocations: 139.8 kB / 1.294 GB, free: 2.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/1.648, allocations: 2.844 kB / 1.294 GB, free: 2.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/1.649, allocations: 127.9 kB / 1.294 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/1.649, allocations: 24.84 kB / 1.294 GB, free: 2.246 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005529/1.65, allocations: 379.2 kB / 1.294 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/1.65, allocations: 104.2 kB / 1.294 GB, free: 2.004 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/1.651, allocations: 0.7724 MB / 1.295 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/1.651, allocations: 5.281 kB / 1.295 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/1.651, allocations: 0 / 1.295 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001048/1.652, allocations: 0.9234 MB / 1.296 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003615/1.656, allocations: 2.267 MB / 1.298 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/1.656, allocations: 6.094 kB / 1.298 GB, free: 0.8008 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006512/1.657, allocations: 138.5 kB / 1.298 GB, free: 0.8008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.52e-05/1.657, allocations: 6.875 kB / 1.298 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/1.657, allocations: 25.83 kB / 1.298 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/1.657, allocations: 6.156 kB / 1.298 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.657, allocations: 5.375 kB / 1.298 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/1.659, allocations: 1.256 MB / 1.3 GB, free: 488 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006454/1.66, allocations: 262.7 kB / 1.3 GB, free: 328 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/1.66, allocations: 23.34 kB / 1.3 GB, free: 324 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/1.661, allocations: 96.84 kB / 1.3 GB, free: 312 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/1.661, allocations: 44.42 kB / 1.3 GB, free: 312 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.863e-05/1.661, allocations: 30.25 kB / 1.3 GB, free: 308 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0009757/1.662, allocations: 0.5832 MB / 1.301 GB, free: 196 kB / 0.9825 GB Notification: Performance of sort global known variables: time 2.31e-07/1.662, allocations: 0 / 1.301 GB, free: 196 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001689/1.664, allocations: 0.5361 MB / 1.301 GB, free: 120 kB / 0.9825 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 (60): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006396/1.664, allocations: 253.5 kB / 1.301 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001798/1.666, allocations: 0.9716 MB / 1.302 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.666, allocations: 0 / 1.302 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005698/1.667, allocations: 356.7 kB / 1.303 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004033/1.671, allocations: 0.6241 MB / 1.303 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004198/1.675, allocations: 2.727 MB / 1.306 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008006/1.676, allocations: 1.119 MB / 1.307 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003952/1.676, allocations: 88.44 kB / 1.307 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/1.676, allocations: 0 / 1.307 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of Templates: time 0.03008/1.706, allocations: 17.02 MB / 1.324 GB, free: 8.828 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:senTem1.T,senTem2.T,senTem3.T,spl.port_1.m_flow,spl.port_1.p,spl.port_2.m_flow,spl.port_2.p,spl.port_3.m_flow,spl.port_3.p,spl.res1.dp,spl.res2.dp,spl.res3.dp,time