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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000953/0.0009522, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009435/0.0009435, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.796/2.796, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003805, allocations: 8 kB / 0.8708 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9103/0.9107, allocations: 153.6 MB / 1.021 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.2323/1.143, allocations: 196.6 MB / 1.213 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01267/1.156, allocations: 7.237 MB / 1.22 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/1.158, allocations: 47.62 kB / 1.22 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002309/1.16, allocations: 0.665 MB / 1.221 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006559/1.167, allocations: 1.94 MB / 1.222 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005841/1.172, allocations: 1.62 MB / 1.224 GB, free: 468 kB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.004431/1.177, allocations: 1.882 MB / 1.226 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001723/1.179, allocations: 0.8201 MB / 1.227 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004448/1.183, allocations: 1.429 MB / 1.228 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/1.184, allocations: 0.6108 MB / 1.229 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001237/1.184, allocations: 48 kB / 1.229 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00347/1.188, allocations: 1.061 MB / 1.23 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004699/1.188, allocations: 350.9 kB / 1.23 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005181/1.189, allocations: 285.1 kB / 1.23 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002429/1.191, allocations: 1.617 MB / 1.232 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/1.191, allocations: 0 / 1.232 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.735e-06/1.191, allocations: 0 / 1.232 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.431e-05/1.191, allocations: 0 / 1.232 GB, free: 8.34 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.002709/1.194, allocations: 1.433 MB / 1.233 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/1.194, allocations: 15.98 kB / 1.233 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002643/1.197, allocations: 433.9 kB / 1.234 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/1.199, allocations: 0.918 MB / 1.235 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.639e-05/1.199, allocations: 69.95 kB / 1.235 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/1.199, allocations: 80 kB / 1.235 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/1.2, allocations: 0.8701 MB / 1.236 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/1.2, allocations: 0 / 1.236 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.085e-05/1.201, allocations: 32 kB / 1.236 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-05/1.201, allocations: 30 kB / 1.236 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/1.202, allocations: 0.8198 MB / 1.236 GB, free: 3.547 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.006486/1.209, allocations: 3.647 MB / 1.24 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/1.21, allocations: 1.126 MB / 1.241 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005483/1.211, allocations: 149.6 kB / 1.241 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/1.211, allocations: 39.12 kB / 1.241 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 3.767e-06/1.211, allocations: 4 kB / 1.241 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002162/1.213, allocations: 0.9818 MB / 1.242 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/1.213, allocations: 59.97 kB / 1.242 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/1.214, allocations: 0.8282 MB / 1.243 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/1.214, allocations: 37.7 kB / 1.243 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003695/1.215, allocations: 484.1 kB / 1.244 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/1.215, allocations: 216.9 kB / 1.244 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/1.215, allocations: 8 kB / 1.244 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000148/1.215, allocations: 337.9 kB / 1.244 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/1.216, allocations: 253 kB / 1.244 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/1.216, allocations: 375.3 kB / 1.245 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/1.217, allocations: 306.1 kB / 1.245 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/1.217, allocations: 0 / 1.245 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001298/1.218, allocations: 0.7437 MB / 1.246 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002161/1.218, allocations: 455.3 kB / 1.246 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/1.218, allocations: 0 / 1.246 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/1.218, allocations: 8 kB / 1.246 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005832/1.219, allocations: 135.8 kB / 1.246 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/1.219, allocations: 4 kB / 1.246 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009886/1.22, allocations: 135.3 kB / 1.247 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/1.22, allocations: 20 kB / 1.247 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/1.22, allocations: 4 kB / 1.247 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001134/1.221, allocations: 0.6261 MB / 1.247 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/1.221, allocations: 8.125 kB / 1.247 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.342e-06/1.221, allocations: 4 kB / 1.247 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005331/1.222, allocations: 131.8 kB / 1.247 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/1.222, allocations: 4 kB / 1.247 GB, free: 7.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009456/1.223, allocations: 131.4 kB / 1.247 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/1.223, allocations: 24 kB / 1.247 GB, free: 7.762 MB / 0.9981 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.0006198/1.223, allocations: 384.9 kB / 1.248 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/1.224, allocations: 102.8 kB / 1.248 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/1.225, allocations: 0.7665 MB / 1.249 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/1.225, allocations: 7.953 kB / 1.249 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/1.225, allocations: 4 kB / 1.249 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001189/1.226, allocations: 0.9189 MB / 1.25 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/1.23, allocations: 2.263 MB / 1.252 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/1.23, allocations: 4 kB / 1.252 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006518/1.231, allocations: 139.8 kB / 1.252 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/1.231, allocations: 8 kB / 1.252 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/1.231, allocations: 16 kB / 1.252 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/1.231, allocations: 4 kB / 1.252 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.231, allocations: 8.25 kB / 1.252 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/1.233, allocations: 1.413 MB / 1.253 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005435/1.233, allocations: 263.7 kB / 1.254 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/1.233, allocations: 20 kB / 1.254 GB, free: 1.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00079/1.234, allocations: 103.8 kB / 1.254 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.234, allocations: 36.39 kB / 1.254 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/1.234, allocations: 27.98 kB / 1.254 GB, free: 0.8984 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008117/1.235, allocations: 0.5784 MB / 1.254 GB, free: 316 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.235, allocations: 96 / 1.254 GB, free: 316 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.7842/2.019, allocations: 0.5318 MB / 1.255 GB, free: 232.5 MB / 0.9981 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 (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.0009133/2.02, allocations: 246.4 kB / 1.255 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003051/2.024, allocations: 0.9628 MB / 1.256 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/2.024, allocations: 0.7188 kB / 1.256 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007994/2.024, allocations: 352.3 kB / 1.256 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/2.028, allocations: 0.6125 MB / 1.257 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/2.033, allocations: 2.634 MB / 1.26 GB, free: 231 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/2.034, allocations: 1.143 MB / 1.261 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001774/2.036, allocations: 301.4 kB / 1.261 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/2.036, allocations: 81.28 kB / 1.261 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.623e-06/2.036, allocations: 0 / 1.261 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.0473/2.084, allocations: 19.05 MB / 1.28 GB, free: 224.2 MB / 0.9981 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