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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001057/0.001057, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008374/0.008374, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.469/1.469, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.552/2.552, allocations: 390.9 MB / 0.6663 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004375/0.0004377, allocations: 8 kB / 0.8159 GB, free: 13.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9412/0.9417, allocations: 142.4 MB / 0.955 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.2845/1.226, allocations: 234.6 MB / 1.184 GB, free: 4.004 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01373/1.24, allocations: 7.222 MB / 1.191 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002373/1.242, allocations: 43.69 kB / 1.191 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.003576/1.246, allocations: 0.5789 MB / 1.192 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.008294/1.254, allocations: 1.95 MB / 1.194 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005665/1.26, allocations: 1.872 MB / 1.195 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.006673/1.267, allocations: 4.431 MB / 1.2 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001911/1.269, allocations: 0.9146 MB / 1.201 GB, free: 2.945 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004434/1.273, allocations: 1.576 MB / 1.202 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002339/1.275, allocations: 0.9547 MB / 1.203 GB, free: 416 kB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.000367/1.276, allocations: 48 kB / 1.203 GB, free: 368 kB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006839/1.283, allocations: 2.833 MB / 1.206 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0007673/1.284, allocations: 378.7 kB / 1.206 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001553/1.285, allocations: 0.6624 MB / 1.207 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.006299/1.291, allocations: 2.722 MB / 1.21 GB, free: 9.746 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/1.291, allocations: 0 / 1.21 GB, free: 9.746 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.464e-06/1.291, allocations: 4 kB / 1.21 GB, free: 9.742 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.903e-05/1.292, allocations: 0 / 1.21 GB, free: 9.742 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.004604/1.296, allocations: 1.475 MB / 1.211 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/1.296, allocations: 8.031 kB / 1.211 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003083/1.299, allocations: 425.9 kB / 1.212 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0023/1.302, allocations: 0.9716 MB / 1.212 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.216e-05/1.302, allocations: 58 kB / 1.213 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/1.302, allocations: 84 kB / 1.213 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/1.304, allocations: 0.8741 MB / 1.213 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/1.304, allocations: 3.938 kB / 1.213 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.073e-05/1.304, allocations: 36 kB / 1.213 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.331e-05/1.304, allocations: 29.98 kB / 1.214 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/1.306, allocations: 0.8237 MB / 1.214 GB, free: 4.859 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.006262/1.312, allocations: 3.658 MB / 1.218 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/1.314, allocations: 1.102 MB / 1.219 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006694/1.315, allocations: 382.3 kB / 1.219 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000774/1.316, allocations: 424.8 kB / 1.22 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/1.316, allocations: 39.12 kB / 1.22 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.635e-06/1.316, allocations: 0 / 1.22 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002404/1.318, allocations: 0.9858 MB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.696e-05/1.318, allocations: 59.97 kB / 1.221 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/1.32, allocations: 0.8282 MB / 1.222 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.577e-05/1.32, allocations: 41.7 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004777/1.32, allocations: 488.1 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.000312/1.321, allocations: 205 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/1.321, allocations: 61.69 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001616/1.321, allocations: 326 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005388/1.321, allocations: 260.9 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000681/1.322, allocations: 379.5 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/1.324, allocations: 0.6087 MB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.324, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001785/1.325, allocations: 0.7593 MB / 1.225 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.325, allocations: 122.8 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/1.325, allocations: 7.938 kB / 1.225 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/1.326, allocations: 4 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000582/1.326, allocations: 127.8 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/1.326, allocations: 8 kB / 1.225 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/1.327, allocations: 143.3 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-05/1.327, allocations: 20 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/1.327, allocations: 5.719 kB / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001344/1.329, allocations: 0.63 MB / 1.226 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/1.329, allocations: 3.938 kB / 1.226 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/1.329, allocations: 8 kB / 1.226 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/1.329, allocations: 139.9 kB / 1.226 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/1.329, allocations: 4 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/1.33, allocations: 127.4 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/1.33, allocations: 27.98 kB / 1.226 GB, free: 8.309 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.0005417/1.331, allocations: 380.9 kB / 1.226 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/1.331, allocations: 102.7 kB / 1.226 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/1.333, allocations: 0.7588 MB / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/1.333, allocations: 8.094 kB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.333, allocations: 7.938 kB / 1.227 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00124/1.334, allocations: 0.9267 MB / 1.228 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004722/1.339, allocations: 2.259 MB / 1.23 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/1.339, allocations: 4 kB / 1.23 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/1.34, allocations: 144.2 kB / 1.23 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.592e-05/1.34, allocations: 7.938 kB / 1.23 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.124e-05/1.34, allocations: 16 kB / 1.23 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.258e-05/1.34, allocations: 11.98 kB / 1.23 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/1.34, allocations: 8 kB / 1.23 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/1.342, allocations: 1.256 MB / 1.232 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006396/1.343, allocations: 259.7 kB / 1.232 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000241/1.343, allocations: 23.98 kB / 1.232 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/1.344, allocations: 99.75 kB / 1.232 GB, free: 1.738 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/1.344, allocations: 48.33 kB / 1.232 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-05/1.344, allocations: 23.98 kB / 1.232 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000995/1.345, allocations: 0.59 MB / 1.233 GB, free: 1.066 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.31e-07/1.345, allocations: 0 / 1.233 GB, free: 1.066 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00175/1.347, allocations: 0.5338 MB / 1.233 GB, free: 0.5312 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.0005786/1.348, allocations: 241.6 kB / 1.233 GB, free: 300 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002116/1.35, allocations: 0.9705 MB / 1.234 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/1.35, allocations: 0 / 1.234 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006691/1.35, allocations: 355.1 kB / 1.235 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003883/1.354, allocations: 0.6235 MB / 1.235 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004355/1.359, allocations: 2.669 MB / 1.238 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009233/1.36, allocations: 1.12 MB / 1.239 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001337/1.361, allocations: 304.1 kB / 1.239 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002692/1.361, allocations: 79.42 kB / 1.239 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of SimCode: time 8.01e-07/1.361, allocations: 0 / 1.239 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of Templates: time 0.6309/1.992, allocations: 19.65 MB / 1.259 GB, free: 281.2 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches