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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00925/0.00925, allocations: 99.98 kB / 15.73 MB, free: 6.039 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.001684/0.001684, allocations: 202 kB / 16.68 MB, free: 5.965 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.563/1.563, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.998/2.998, allocations: 472.6 MB / 0.7453 GB, free: 4.562 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 67.84 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3838, allocations: 159.9 MB / 1.226 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 1.189/1.572, allocations: 239.9 MB / 1.46 GB, free: 14.38 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.01318/1.586, allocations: 7.219 MB / 1.467 GB, free: 7.145 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00269/1.588, allocations: 55.62 kB / 1.467 GB, free: 7.09 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.003073/1.592, allocations: 0.691 MB / 1.468 GB, free: 6.395 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.007406/1.599, allocations: 2.072 MB / 1.47 GB, free: 4.316 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.006094/1.605, allocations: 2.039 MB / 1.472 GB, free: 2.289 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.006276/1.611, allocations: 3.263 MB / 1.475 GB, free: 15.02 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002081/1.614, allocations: 1.135 MB / 1.476 GB, free: 13.86 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005299/1.619, allocations: 1.786 MB / 1.478 GB, free: 12.07 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002495/1.621, allocations: 0.9741 MB / 1.479 GB, free: 11.1 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.0002396/1.622, allocations: 124 kB / 1.479 GB, free: 10.98 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005737/1.627, allocations: 2.49 MB / 1.481 GB, free: 8.48 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.0006138/1.628, allocations: 462.7 kB / 1.482 GB, free: 8.027 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.001104/1.629, allocations: 0.7155 MB / 1.482 GB, free: 7.309 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.005723/1.635, allocations: 2.69 MB / 1.485 GB, free: 4.609 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.635, allocations: 0 / 1.485 GB, free: 4.609 MB / 1.17 GB Notification: Performance of FrontEnd: time 2.234e-06/1.635, allocations: 0 / 1.485 GB, free: 4.609 MB / 1.17 GB Notification: Performance of Transformations before backend: time 2.844e-05/1.635, allocations: 4 kB / 1.485 GB, free: 4.605 MB / 1.17 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.003027/1.638, allocations: 1.759 MB / 1.487 GB, free: 2.789 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/1.638, allocations: 8.031 kB / 1.487 GB, free: 2.781 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002628/1.641, allocations: 430.7 kB / 1.487 GB, free: 2.359 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/1.642, allocations: 1.027 MB / 1.488 GB, free: 1.289 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.967e-05/1.643, allocations: 66 kB / 1.488 GB, free: 1.227 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/1.643, allocations: 83.95 kB / 1.488 GB, free: 1.145 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/1.644, allocations: 0.8662 MB / 1.489 GB, free: 280 kB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/1.644, allocations: 0 / 1.489 GB, free: 280 kB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.591e-05/1.644, allocations: 36 kB / 1.489 GB, free: 244 kB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.664e-05/1.644, allocations: 30 kB / 1.489 GB, free: 212 kB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/1.646, allocations: 0.8043 MB / 1.49 GB, free: 15.4 MB / 1.186 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.004883/1.651, allocations: 3.647 MB / 1.494 GB, free: 11.46 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/1.652, allocations: 1.088 MB / 1.495 GB, free: 10.26 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005972/1.653, allocations: 380.2 kB / 1.495 GB, free: 9.887 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000693/1.654, allocations: 404.8 kB / 1.495 GB, free: 9.418 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/1.654, allocations: 44.75 kB / 1.495 GB, free: 9.367 MB / 1.186 GB Notification: Performance of pre-optimization done (n=60): time 2.745e-06/1.654, allocations: 0 / 1.495 GB, free: 9.367 MB / 1.186 GB Notification: Performance of matching and sorting (n=60): time 0.002176/1.656, allocations: 0.9628 MB / 1.496 GB, free: 8.395 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/1.656, allocations: 63.95 kB / 1.496 GB, free: 8.32 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/1.657, allocations: 0.8322 MB / 1.497 GB, free: 7.465 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 6.277e-05/1.657, allocations: 45.7 kB / 1.497 GB, free: 7.414 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003839/1.658, allocations: 484.8 kB / 1.498 GB, free: 6.934 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/1.658, allocations: 226 kB / 1.498 GB, free: 6.711 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/1.658, allocations: 114.2 kB / 1.498 GB, free: 6.594 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.658, allocations: 322 kB / 1.498 GB, free: 6.273 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/1.659, allocations: 255 kB / 1.499 GB, free: 6.023 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005828/1.659, allocations: 375.4 kB / 1.499 GB, free: 5.625 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/1.66, allocations: 0.5852 MB / 1.5 GB, free: 5.02 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/1.66, allocations: 4 kB / 1.5 GB, free: 5.016 MB / 1.186 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001395/1.662, allocations: 0.7365 MB / 1.5 GB, free: 4.277 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/1.662, allocations: 8 kB / 1.5 GB, free: 4.27 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/1.662, allocations: 96 / 1.5 GB, free: 4.27 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/1.662, allocations: 7.938 kB / 1.5 GB, free: 4.262 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005657/1.662, allocations: 123.8 kB / 1.5 GB, free: 4.141 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/1.662, allocations: 4 kB / 1.5 GB, free: 4.137 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007654/1.663, allocations: 79.7 kB / 1.5 GB, free: 4.059 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.324e-05/1.663, allocations: 23.98 kB / 1.5 GB, free: 4.035 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008803/1.664, allocations: 497 kB / 1.501 GB, free: 3.547 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005736/1.665, allocations: 367.4 kB / 1.501 GB, free: 3.152 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00101/1.666, allocations: 0.5744 MB / 1.502 GB, free: 2.562 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.156e-06/1.666, allocations: 4 kB / 1.502 GB, free: 2.559 MB / 1.186 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001291/1.667, allocations: 0.727 MB / 1.503 GB, free: 1.828 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/1.667, allocations: 22.34 kB / 1.503 GB, free: 1.809 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/1.667, allocations: 0 / 1.503 GB, free: 1.809 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.223e-06/1.667, allocations: 4 kB / 1.503 GB, free: 1.805 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/1.668, allocations: 123.8 kB / 1.503 GB, free: 1.684 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/1.668, allocations: 7.984 kB / 1.503 GB, free: 1.676 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007489/1.668, allocations: 63.7 kB / 1.503 GB, free: 1.613 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/1.668, allocations: 23.98 kB / 1.503 GB, free: 1.59 MB / 1.186 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.0002223/1.669, allocations: 216.1 kB / 1.503 GB, free: 1.371 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/1.669, allocations: 108.3 kB / 1.503 GB, free: 1.266 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/1.67, allocations: 0.7388 MB / 1.504 GB, free: 0.5195 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/1.67, allocations: 8 kB / 1.504 GB, free: 0.5117 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.67, allocations: 0 / 1.504 GB, free: 0.5117 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001246/1.672, allocations: 0.9072 MB / 1.505 GB, free: 15.52 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/1.675, allocations: 2.24 MB / 1.507 GB, free: 13.14 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/1.675, allocations: 7.938 kB / 1.507 GB, free: 13.13 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/1.676, allocations: 135.8 kB / 1.507 GB, free: 13 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/1.676, allocations: 4 kB / 1.507 GB, free: 13 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.882e-05/1.676, allocations: 19.98 kB / 1.507 GB, free: 12.98 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/1.676, allocations: 8.406 kB / 1.507 GB, free: 12.97 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/1.676, allocations: 8 kB / 1.507 GB, free: 12.96 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/1.678, allocations: 1.227 MB / 1.508 GB, free: 11.68 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004196/1.678, allocations: 268.2 kB / 1.509 GB, free: 11.4 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/1.678, allocations: 15.98 kB / 1.509 GB, free: 11.39 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/1.679, allocations: 39.95 kB / 1.509 GB, free: 11.35 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/1.679, allocations: 60.25 kB / 1.509 GB, free: 11.29 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.958e-05/1.679, allocations: 23.98 kB / 1.509 GB, free: 11.27 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.0008409/1.68, allocations: 0.5862 MB / 1.509 GB, free: 10.67 MB / 1.201 GB Notification: Performance of sort global known variables: time 2.6e-07/1.68, allocations: 0 / 1.509 GB, free: 10.67 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.001347/1.681, allocations: 0.5302 MB / 1.51 GB, free: 10.14 MB / 1.201 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.0005772/1.682, allocations: 254.2 kB / 1.51 GB, free: 9.887 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.001861/1.684, allocations: 0.9469 MB / 1.511 GB, free: 8.938 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.684, allocations: 0 / 1.511 GB, free: 8.938 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.0005963/1.684, allocations: 343.2 kB / 1.511 GB, free: 8.605 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/1.687, allocations: 0.5973 MB / 1.512 GB, free: 8.016 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/1.691, allocations: 2.164 MB / 1.514 GB, free: 5.773 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007477/1.691, allocations: 1.128 MB / 1.515 GB, free: 4.617 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.001042/1.692, allocations: 292.1 kB / 1.515 GB, free: 4.328 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/1.693, allocations: 83.44 kB / 1.515 GB, free: 4.246 MB / 1.201 GB Notification: Performance of SimCode: time 6.01e-07/1.693, allocations: 0 / 1.515 GB, free: 4.246 MB / 1.201 GB Notification: Performance of Templates: time 0.03861/1.731, allocations: 20.51 MB / 1.535 GB, free: 28 kB / 1.217 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