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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00146/0.00146, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01363/0.01363, allocations: 169.1 kB / 16.26 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.459/1.459, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.762/2.762, allocations: 462.7 MB / 0.7364 GB, free: 312 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003685, allocations: 12.23 kB / 0.9028 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.4033, allocations: 159.6 MB / 1.059 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.9679/1.371, allocations: 234.6 MB / 1.288 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01506/1.386, allocations: 7.209 MB / 1.295 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002296/1.389, allocations: 45.06 kB / 1.295 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002117/1.391, allocations: 0.5818 MB / 1.295 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006507/1.397, allocations: 1.953 MB / 1.297 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005719/1.403, allocations: 1.866 MB / 1.299 GB, free: 2.277 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.006698/1.41, allocations: 4.422 MB / 1.303 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/1.412, allocations: 0.92 MB / 1.304 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004776/1.416, allocations: 1.57 MB / 1.306 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002696/1.419, allocations: 0.9512 MB / 1.307 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001983/1.419, allocations: 49.53 kB / 1.307 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006526/1.426, allocations: 2.832 MB / 1.31 GB, free: 2.066 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006325/1.427, allocations: 386.4 kB / 1.31 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00153/1.428, allocations: 0.6546 MB / 1.311 GB, free: 18.03 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.006215/1.434, allocations: 2.736 MB / 1.313 GB, free: 17.88 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.434, allocations: 1.188 kB / 1.313 GB, free: 17.88 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.114e-06/1.434, allocations: 0 / 1.313 GB, free: 17.88 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.147e-05/1.434, allocations: 0 / 1.313 GB, free: 17.88 MB / 1.014 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.002932/1.437, allocations: 1.471 MB / 1.315 GB, free: 17.01 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/1.437, allocations: 12.67 kB / 1.315 GB, free: 17.01 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002733/1.44, allocations: 424.8 kB / 1.315 GB, free: 16.93 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/1.442, allocations: 0.9618 MB / 1.316 GB, free: 16.58 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/1.442, allocations: 62.81 kB / 1.316 GB, free: 16.58 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/1.442, allocations: 85.58 kB / 1.316 GB, free: 16.57 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/1.444, allocations: 0.8746 MB / 1.317 GB, free: 16.52 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/1.444, allocations: 7.938 kB / 1.317 GB, free: 16.51 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/1.444, allocations: 32 kB / 1.317 GB, free: 16.51 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/1.444, allocations: 26.22 kB / 1.317 GB, free: 16.51 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/1.445, allocations: 0.8291 MB / 1.318 GB, free: 16.5 MB / 1.014 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.004792/1.45, allocations: 3.663 MB / 1.322 GB, free: 14.84 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/1.452, allocations: 1.102 MB / 1.323 GB, free: 14.25 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005517/1.452, allocations: 384.8 kB / 1.323 GB, free: 14.23 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007209/1.453, allocations: 419.9 kB / 1.323 GB, free: 13.86 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/1.453, allocations: 40.72 kB / 1.323 GB, free: 13.82 MB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 4.098e-06/1.453, allocations: 0 / 1.323 GB, free: 13.82 MB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.002056/1.455, allocations: 0.9873 MB / 1.324 GB, free: 13.71 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/1.455, allocations: 66.38 kB / 1.324 GB, free: 13.64 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009744/1.456, allocations: 0.8344 MB / 1.325 GB, free: 13.5 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/1.456, allocations: 35.92 kB / 1.325 GB, free: 13.47 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/1.456, allocations: 488 kB / 1.326 GB, free: 13.29 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/1.457, allocations: 211.9 kB / 1.326 GB, free: 13.15 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.159e-05/1.457, allocations: 53.45 kB / 1.326 GB, free: 13.14 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.457, allocations: 325.9 kB / 1.326 GB, free: 12.83 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/1.457, allocations: 258.1 kB / 1.327 GB, free: 12.83 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005252/1.458, allocations: 376.3 kB / 1.327 GB, free: 12.73 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009562/1.459, allocations: 0.6195 MB / 1.328 GB, free: 12.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.459, allocations: 0 / 1.328 GB, free: 12.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001209/1.46, allocations: 0.7492 MB / 1.328 GB, free: 12.58 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.085e-05/1.46, allocations: 128 kB / 1.328 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/1.46, allocations: 2.438 kB / 1.328 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/1.46, allocations: 5.125 kB / 1.328 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005425/1.461, allocations: 129.6 kB / 1.329 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/1.461, allocations: 5.844 kB / 1.329 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/1.462, allocations: 142.2 kB / 1.329 GB, free: 12.41 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/1.462, allocations: 28.28 kB / 1.329 GB, free: 12.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/1.462, allocations: 3.156 kB / 1.329 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001094/1.463, allocations: 0.6276 MB / 1.329 GB, free: 12.39 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/1.463, allocations: 7.344 kB / 1.329 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.08e-06/1.463, allocations: 8.094 kB / 1.329 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/1.464, allocations: 129.4 kB / 1.329 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/1.464, allocations: 3.562 kB / 1.329 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/1.465, allocations: 136.5 kB / 1.33 GB, free: 12.35 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.123e-05/1.465, allocations: 18.28 kB / 1.33 GB, free: 12.35 MB / 1.014 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.0006233/1.465, allocations: 382.9 kB / 1.33 GB, free: 12.16 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/1.465, allocations: 102.8 kB / 1.33 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/1.467, allocations: 0.7575 MB / 1.331 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/1.467, allocations: 15.66 kB / 1.331 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.467, allocations: 0 / 1.331 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001092/1.468, allocations: 0.9262 MB / 1.332 GB, free: 11.58 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/1.471, allocations: 2.261 MB / 1.334 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/1.471, allocations: 3.094 kB / 1.334 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006329/1.472, allocations: 148.8 kB / 1.334 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/1.472, allocations: 5.719 kB / 1.334 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.952e-05/1.472, allocations: 20.89 kB / 1.334 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-05/1.472, allocations: 14.19 kB / 1.334 GB, free: 10.9 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.472, allocations: 3.156 kB / 1.334 GB, free: 10.9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/1.474, allocations: 1.258 MB / 1.335 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005287/1.475, allocations: 263.6 kB / 1.336 GB, free: 10.43 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/1.475, allocations: 20.91 kB / 1.336 GB, free: 10.43 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008184/1.476, allocations: 93.55 kB / 1.336 GB, free: 10.42 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/1.476, allocations: 56.72 kB / 1.336 GB, free: 10.41 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/1.476, allocations: 23.86 kB / 1.336 GB, free: 10.41 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0007604/1.477, allocations: 0.5818 MB / 1.336 GB, free: 10.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/1.477, allocations: 0 / 1.336 GB, free: 10.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001388/1.478, allocations: 0.5386 MB / 1.337 GB, free: 10.23 MB / 1.014 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.0005215/1.479, allocations: 244.6 kB / 1.337 GB, free: 10.1 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001689/1.48, allocations: 0.9709 MB / 1.338 GB, free: 10.08 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.48, allocations: 2.844 kB / 1.338 GB, free: 10.08 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0005696/1.481, allocations: 355.2 kB / 1.338 GB, free: 10.07 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/1.484, allocations: 0.6164 MB / 1.339 GB, free: 10.02 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/1.488, allocations: 2.666 MB / 1.342 GB, free: 8.5 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007159/1.489, allocations: 1.126 MB / 1.343 GB, free: 7.777 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001144/1.49, allocations: 302 kB / 1.343 GB, free: 7.711 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/1.49, allocations: 80.97 kB / 1.343 GB, free: 7.703 MB / 1.014 GB Notification: Performance of SimCode: time 9.82e-07/1.49, allocations: 0 / 1.343 GB, free: 7.703 MB / 1.014 GB Notification: Performance of Templates: time 0.03306/1.523, allocations: 19.65 MB / 1.362 GB, free: 4 kB / 1.014 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches