Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001005/0.001005, allocations: 92.7 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.001323/0.001324, allocations: 178 kB / 16.92 MB, free: 6.652 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.405/1.405, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.9 MB / 0.667 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003528, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6959/0.6963, allocations: 142.4 MB / 0.9557 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.259/0.9553, allocations: 234.6 MB / 1.185 GB, free: 3.969 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01152/0.9668, allocations: 7.229 MB / 1.192 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00179/0.9687, allocations: 51.62 kB / 1.192 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.9707, allocations: 0.5712 MB / 1.192 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005615/0.9764, allocations: 1.952 MB / 1.194 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005032/0.9814, allocations: 1.868 MB / 1.196 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.005483/0.9869, allocations: 4.431 MB / 1.2 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.9887, allocations: 0.9069 MB / 1.201 GB, free: 2.906 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003879/0.9926, allocations: 1.572 MB / 1.203 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002208/0.9948, allocations: 0.9547 MB / 1.204 GB, free: 380 kB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003031/0.9951, allocations: 48 kB / 1.204 GB, free: 332 kB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005134/1, allocations: 2.829 MB / 1.207 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0006275/1.001, allocations: 378.7 kB / 1.207 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001268/1.002, allocations: 0.6624 MB / 1.208 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003151/1.005, allocations: 1.945 MB / 1.21 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.005, allocations: 0 / 1.21 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.204e-06/1.005, allocations: 0 / 1.21 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.323e-05/1.005, allocations: 0 / 1.21 GB, free: 10.5 MB / 0.9669 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.00327/1.009, allocations: 1.468 MB / 1.211 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/1.009, allocations: 12.03 kB / 1.211 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003008/1.012, allocations: 425.9 kB / 1.211 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001984/1.014, allocations: 0.9677 MB / 1.212 GB, free: 7.535 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.399e-05/1.014, allocations: 62 kB / 1.212 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/1.014, allocations: 83.94 kB / 1.212 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/1.016, allocations: 0.8857 MB / 1.213 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/1.016, allocations: 0 / 1.213 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.655e-05/1.016, allocations: 32 kB / 1.213 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.222e-05/1.016, allocations: 26 kB / 1.213 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/1.018, allocations: 0.8315 MB / 1.214 GB, free: 5.613 MB / 0.9669 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.00546/1.023, allocations: 3.654 MB / 1.218 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/1.025, allocations: 1.098 MB / 1.219 GB, free: 464 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006427/1.026, allocations: 382.3 kB / 1.219 GB, free: 80 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007637/1.027, allocations: 416.9 kB / 1.22 GB, free: 15.6 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/1.027, allocations: 47.12 kB / 1.22 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 4.047e-06/1.027, allocations: 0 / 1.22 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002287/1.029, allocations: 0.9897 MB / 1.221 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/1.029, allocations: 59.97 kB / 1.221 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/1.03, allocations: 0.8321 MB / 1.222 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.191e-05/1.03, allocations: 45.7 kB / 1.222 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/1.031, allocations: 480.1 kB / 1.222 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/1.031, allocations: 212.9 kB / 1.222 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.101e-05/1.031, allocations: 57.69 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.031, allocations: 322 kB / 1.223 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/1.032, allocations: 265 kB / 1.223 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006289/1.032, allocations: 375.4 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/1.034, allocations: 0.6165 MB / 1.224 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/1.034, allocations: 0 / 1.224 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001586/1.035, allocations: 0.7593 MB / 1.225 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.56e-05/1.035, allocations: 118.8 kB / 1.225 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/1.035, allocations: 4 kB / 1.225 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/1.035, allocations: 4 kB / 1.225 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006147/1.036, allocations: 131.8 kB / 1.225 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/1.036, allocations: 7.938 kB / 1.225 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/1.037, allocations: 135.3 kB / 1.225 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.869e-05/1.037, allocations: 27.97 kB / 1.225 GB, free: 10 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/1.037, allocations: 8 kB / 1.225 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00125/1.038, allocations: 0.63 MB / 1.226 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/1.038, allocations: 3.938 kB / 1.226 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/1.038, allocations: 4 kB / 1.226 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/1.039, allocations: 127.9 kB / 1.226 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/1.039, allocations: 7.938 kB / 1.226 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/1.04, allocations: 131.5 kB / 1.226 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.339e-05/1.04, allocations: 24 kB / 1.226 GB, free: 9.07 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.0005761/1.041, allocations: 377 kB / 1.226 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/1.041, allocations: 106.7 kB / 1.226 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/1.043, allocations: 0.7666 MB / 1.227 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/1.043, allocations: 11.94 kB / 1.227 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.043, allocations: 0 / 1.227 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001248/1.044, allocations: 0.9151 MB / 1.228 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003806/1.048, allocations: 2.275 MB / 1.23 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/1.048, allocations: 4 kB / 1.23 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/1.048, allocations: 136.3 kB / 1.23 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.466e-05/1.048, allocations: 11.94 kB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-05/1.049, allocations: 19.98 kB / 1.23 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-05/1.049, allocations: 11.94 kB / 1.23 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.049, allocations: 4 kB / 1.23 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/1.051, allocations: 1.26 MB / 1.232 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004985/1.051, allocations: 263.7 kB / 1.232 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/1.051, allocations: 16 kB / 1.232 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009329/1.052, allocations: 99.75 kB / 1.232 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/1.052, allocations: 56.25 kB / 1.232 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.011e-05/1.052, allocations: 24 kB / 1.232 GB, free: 2.418 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0009204/1.053, allocations: 0.5862 MB / 1.233 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.81e-07/1.053, allocations: 0 / 1.233 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001515/1.055, allocations: 0.5338 MB / 1.233 GB, free: 1.285 MB / 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.0005678/1.055, allocations: 243.5 kB / 1.233 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001952/1.057, allocations: 0.9666 MB / 1.234 GB, free: 84 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.057, allocations: 4.062 kB / 1.234 GB, free: 80 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006542/1.058, allocations: 351 kB / 1.235 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003718/1.062, allocations: 0.6254 MB / 1.235 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/1.066, allocations: 2.733 MB / 1.238 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000784/1.067, allocations: 1.116 MB / 1.239 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/1.067, allocations: 87.42 kB / 1.239 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of SimCode: time 7.11e-07/1.067, allocations: 0 / 1.239 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of Templates: time 0.5029/1.57, allocations: 17.02 MB / 1.256 GB, free: 278 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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