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.00123/0.00123, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001458/0.001458, allocations: 195.1 kB / 16.25 MB, free: 6.625 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.501/2.501, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 63.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9394/0.941, allocations: 140.4 MB / 0.9491 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.2874/1.228, allocations: 237 MB / 1.181 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01247/1.241, allocations: 7.167 MB / 1.188 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00226/1.243, allocations: 51.62 kB / 1.188 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002274/1.246, allocations: 0.6024 MB / 1.188 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.006068/1.252, allocations: 1.956 MB / 1.19 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005102/1.257, allocations: 1.878 MB / 1.192 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.005361/1.262, allocations: 3.28 MB / 1.195 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/1.264, allocations: 1.094 MB / 1.196 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004951/1.269, allocations: 1.79 MB / 1.198 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002416/1.271, allocations: 1.019 MB / 1.199 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002958/1.272, allocations: 124 kB / 1.199 GB, free: 1.238 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005292/1.277, allocations: 2.591 MB / 1.202 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0006864/1.278, allocations: 458.7 kB / 1.202 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001148/1.279, allocations: 0.7233 MB / 1.203 GB, free: 13.46 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.005517/1.284, allocations: 2.824 MB / 1.205 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/1.284, allocations: 0 / 1.205 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.185e-06/1.284, allocations: 0 / 1.205 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.578e-05/1.284, allocations: 0 / 1.205 GB, free: 10.63 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.003431/1.288, allocations: 1.709 MB / 1.207 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/1.288, allocations: 12.03 kB / 1.207 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002873/1.291, allocations: 418 kB / 1.208 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/1.292, allocations: 0.9676 MB / 1.208 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/1.293, allocations: 66 kB / 1.209 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/1.293, allocations: 84 kB / 1.209 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/1.294, allocations: 0.8585 MB / 1.209 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/1.294, allocations: 0 / 1.209 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.585e-05/1.295, allocations: 39.94 kB / 1.21 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.525e-05/1.295, allocations: 26 kB / 1.21 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/1.296, allocations: 0.8081 MB / 1.21 GB, free: 5.551 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.005244/1.301, allocations: 3.639 MB / 1.214 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/1.303, allocations: 1.087 MB / 1.215 GB, free: 432 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006425/1.304, allocations: 374.3 kB / 1.215 GB, free: 56 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007573/1.305, allocations: 404.9 kB / 1.216 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/1.305, allocations: 47.06 kB / 1.216 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/1.305, allocations: 0 / 1.216 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002257/1.307, allocations: 0.9584 MB / 1.217 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/1.307, allocations: 59.97 kB / 1.217 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/1.308, allocations: 0.8322 MB / 1.218 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.56e-05/1.308, allocations: 37.7 kB / 1.218 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004363/1.309, allocations: 488.1 kB / 1.218 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002688/1.309, allocations: 208.9 kB / 1.218 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/1.309, allocations: 118.1 kB / 1.218 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001366/1.309, allocations: 330 kB / 1.219 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/1.31, allocations: 254.9 kB / 1.219 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005983/1.311, allocations: 371.4 kB / 1.219 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/1.312, allocations: 0.5852 MB / 1.22 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.312, allocations: 0 / 1.22 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001492/1.313, allocations: 0.7397 MB / 1.221 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/1.313, allocations: 8 kB / 1.221 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/1.313, allocations: 128 / 1.221 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/1.313, allocations: 8 kB / 1.221 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/1.314, allocations: 127.8 kB / 1.221 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/1.314, allocations: 4 kB / 1.221 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/1.315, allocations: 131.4 kB / 1.221 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.848e-05/1.315, allocations: 20 kB / 1.221 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008866/1.316, allocations: 497 kB / 1.221 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005694/1.316, allocations: 359.5 kB / 1.222 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001006/1.317, allocations: 0.5813 MB / 1.222 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.204e-06/1.317, allocations: 0 / 1.222 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001426/1.319, allocations: 0.732 MB / 1.223 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/1.319, allocations: 4 kB / 1.223 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/1.319, allocations: 0 / 1.223 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.856e-06/1.319, allocations: 7.984 kB / 1.223 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005655/1.319, allocations: 127.8 kB / 1.223 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/1.319, allocations: 0 / 1.223 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009904/1.32, allocations: 127.5 kB / 1.223 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.764e-05/1.321, allocations: 20.19 kB / 1.223 GB, free: 7.676 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.0002504/1.321, allocations: 208.1 kB / 1.223 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/1.321, allocations: 114.6 kB / 1.224 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/1.323, allocations: 0.7431 MB / 1.224 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/1.323, allocations: 11.94 kB / 1.224 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/1.323, allocations: 0 / 1.224 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001196/1.324, allocations: 0.9073 MB / 1.225 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/1.327, allocations: 2.244 MB / 1.227 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.327, allocations: 4 kB / 1.227 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006585/1.328, allocations: 139.7 kB / 1.227 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/1.328, allocations: 4 kB / 1.227 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.851e-05/1.328, allocations: 16 kB / 1.227 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-05/1.328, allocations: 11.98 kB / 1.228 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/1.328, allocations: 7.938 kB / 1.228 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/1.33, allocations: 1.225 MB / 1.229 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004468/1.33, allocations: 263.7 kB / 1.229 GB, free: 1.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/1.331, allocations: 16 kB / 1.229 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008219/1.331, allocations: 95.73 kB / 1.229 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/1.332, allocations: 52.27 kB / 1.229 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/1.332, allocations: 27.98 kB / 1.229 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008282/1.332, allocations: 0.5784 MB / 1.23 GB, free: 0.7031 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.8e-07/1.332, allocations: 0 / 1.23 GB, free: 0.7031 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001415/1.334, allocations: 0.5338 MB / 1.23 GB, free: 172 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.0006409/1.334, allocations: 235.3 kB / 1.23 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002137/1.337, allocations: 1.013 MB / 1.231 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/1.337, allocations: 3.938 kB / 1.231 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005865/1.337, allocations: 335.2 kB / 1.232 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/1.34, allocations: 0.6044 MB / 1.232 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/1.343, allocations: 2.561 MB / 1.235 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/1.344, allocations: 1.116 MB / 1.236 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001133/1.345, allocations: 300.1 kB / 1.236 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/1.346, allocations: 87.42 kB / 1.236 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of SimCode: time 7.12e-07/1.346, allocations: 0 / 1.236 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of Templates: time 0.6545/2, allocations: 20.15 MB / 1.256 GB, free: 282.4 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