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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008435/0.0008436, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008562/0.0008562, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.05/3.05, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004202/0.0004204, allocations: 16.23 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4061/0.4065, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 1.022/1.429, allocations: 218.8 MB / 1.272 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01077/1.439, allocations: 6.806 MB / 1.278 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002075/1.442, allocations: 45.12 kB / 1.278 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001978/1.444, allocations: 468.8 kB / 1.279 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005487/1.449, allocations: 1.529 MB / 1.28 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005753/1.455, allocations: 1.459 MB / 1.282 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.008801/1.464, allocations: 3.766 MB / 1.285 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003289/1.467, allocations: 0.8095 MB / 1.286 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007965/1.475, allocations: 1.432 MB / 1.288 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003726/1.479, allocations: 0.9054 MB / 1.289 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007184/1.48, allocations: 53 kB / 1.289 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007776/1.487, allocations: 1.392 MB / 1.29 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001611/1.489, allocations: 377.8 kB / 1.29 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001833/1.491, allocations: 287 kB / 1.291 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00634/1.497, allocations: 1.794 MB / 1.292 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.043e-05/1.497, allocations: 2.719 kB / 1.292 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.758e-06/1.497, allocations: 0.8438 kB / 1.292 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001018/1.497, allocations: 0 / 1.292 GB, free: 11.43 MB / 0.9981 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.00566/1.503, allocations: 1.485 MB / 1.294 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.503, allocations: 9.625 kB / 1.294 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005047/1.508, allocations: 425.7 kB / 1.294 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/1.512, allocations: 0.9348 MB / 1.295 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-05/1.512, allocations: 60.75 kB / 1.295 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002285/1.512, allocations: 86.94 kB / 1.295 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/1.515, allocations: 0.8686 MB / 1.296 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/1.515, allocations: 1.438 kB / 1.296 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/1.515, allocations: 31.47 kB / 1.296 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.92e-05/1.515, allocations: 28.72 kB / 1.296 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002595/1.517, allocations: 0.8316 MB / 1.297 GB, free: 10.09 MB / 0.9981 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.007865/1.525, allocations: 3.644 MB / 1.301 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/1.528, allocations: 1.095 MB / 1.302 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/1.529, allocations: 385 kB / 1.302 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001028/1.53, allocations: 423 kB / 1.302 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/1.53, allocations: 39.16 kB / 1.302 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 5.76e-06/1.53, allocations: 3.984 kB / 1.302 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.003843/1.534, allocations: 0.9874 MB / 1.303 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/1.534, allocations: 59.84 kB / 1.303 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/1.536, allocations: 0.828 MB / 1.304 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000105/1.536, allocations: 38.73 kB / 1.304 GB, free: 7.074 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/1.536, allocations: 484.6 kB / 1.305 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/1.537, allocations: 216.4 kB / 1.305 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.198e-05/1.537, allocations: 7.812 kB / 1.305 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.579e-05/1.537, allocations: 328 kB / 1.305 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008676/1.538, allocations: 253.2 kB / 1.305 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/1.539, allocations: 377.1 kB / 1.306 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/1.54, allocations: 306.4 kB / 1.306 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.974e-06/1.54, allocations: 0.5 kB / 1.306 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002654/1.543, allocations: 0.7393 MB / 1.307 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.226e-05/1.543, allocations: 127.1 kB / 1.307 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.543, allocations: 3.125 kB / 1.307 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/1.543, allocations: 4.031 kB / 1.307 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/1.544, allocations: 132.8 kB / 1.307 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.674e-05/1.544, allocations: 3.625 kB / 1.307 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/1.546, allocations: 134.8 kB / 1.307 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.95e-05/1.546, allocations: 23.28 kB / 1.307 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/1.546, allocations: 8 kB / 1.307 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002047/1.548, allocations: 0.623 MB / 1.308 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/1.548, allocations: 4.156 kB / 1.308 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/1.548, allocations: 8.266 kB / 1.308 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/1.549, allocations: 131.6 kB / 1.308 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/1.549, allocations: 3.031 kB / 1.308 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/1.551, allocations: 129.9 kB / 1.308 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.547e-05/1.551, allocations: 27.09 kB / 1.308 GB, free: 6.008 MB / 0.9981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009514/1.552, allocations: 385 kB / 1.309 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/1.552, allocations: 100.6 kB / 1.309 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/1.555, allocations: 0.7614 MB / 1.309 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/1.555, allocations: 9.328 kB / 1.309 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/1.555, allocations: 0.6875 kB / 1.309 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00184/1.557, allocations: 0.924 MB / 1.31 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006941/1.564, allocations: 2.262 MB / 1.313 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.564, allocations: 2.75 kB / 1.313 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/1.565, allocations: 144.8 kB / 1.313 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-05/1.565, allocations: 6 kB / 1.313 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.833e-05/1.565, allocations: 24.59 kB / 1.313 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.316e-05/1.565, allocations: 8.938 kB / 1.313 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/1.565, allocations: 6.406 kB / 1.313 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003377/1.569, allocations: 1.258 MB / 1.314 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008689/1.569, allocations: 258.6 kB / 1.314 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/1.57, allocations: 17.98 kB / 1.314 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/1.571, allocations: 97.91 kB / 1.314 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/1.571, allocations: 56.22 kB / 1.314 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.657e-05/1.571, allocations: 24.69 kB / 1.314 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001441/1.573, allocations: 0.5792 MB / 1.315 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.91e-07/1.573, allocations: 0 / 1.315 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002483/1.575, allocations: 0.5347 MB / 1.315 GB, free: 3.891 MB / 0.9981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006849/1.576, allocations: 244.4 kB / 1.316 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002924/1.579, allocations: 0.9579 MB / 1.317 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/1.579, allocations: 320 / 1.317 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001001/1.58, allocations: 355.6 kB / 1.317 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00536/1.585, allocations: 0.6303 MB / 1.318 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0057/1.591, allocations: 2.633 MB / 1.32 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/1.592, allocations: 1.121 MB / 1.321 GB, free: 17.54 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002278/1.595, allocations: 307.3 kB / 1.322 GB, free: 17.47 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/1.595, allocations: 74.84 kB / 1.322 GB, free: 17.46 MB / 1.014 GB Notification: Performance of SimCode: time 2.064e-06/1.595, allocations: 0 / 1.322 GB, free: 17.46 MB / 1.014 GB Notification: Performance of Templates: time 0.06434/1.659, allocations: 19.07 MB / 1.34 GB, free: 11.89 MB / 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