Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0009345/0.000935, allocations: 97.64 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.008358/0.008358, allocations: 169 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.433/1.433, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.76/2.76, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000414/0.000414, allocations: 8 kB / 0.8728 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8386/0.839, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 1.024/1.863, allocations: 234.6 MB / 1.252 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01083/1.874, allocations: 7.211 MB / 1.259 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001722/1.876, allocations: 41.75 kB / 1.259 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001983/1.878, allocations: 0.5819 MB / 1.26 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.006282/1.884, allocations: 1.956 MB / 1.262 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007393/1.891, allocations: 1.86 MB / 1.263 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.008743/1.9, allocations: 4.432 MB / 1.268 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002146/1.902, allocations: 0.9246 MB / 1.269 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005224/1.908, allocations: 1.565 MB / 1.27 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003307/1.911, allocations: 0.9566 MB / 1.271 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002709/1.911, allocations: 49.94 kB / 1.271 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00717/1.918, allocations: 2.821 MB / 1.274 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0008562/1.919, allocations: 389 kB / 1.274 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001531/1.921, allocations: 0.6612 MB / 1.275 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.005734/1.927, allocations: 2.731 MB / 1.278 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/1.927, allocations: 1.75 kB / 1.278 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.824e-06/1.927, allocations: 0 / 1.278 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.582e-05/1.927, allocations: 0 / 1.278 GB, free: 7.672 MB / 0.9825 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.002703/1.929, allocations: 1.468 MB / 1.279 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/1.929, allocations: 14.66 kB / 1.279 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002682/1.932, allocations: 427.3 kB / 1.279 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001479/1.934, allocations: 0.9592 MB / 1.28 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.968e-05/1.934, allocations: 60.03 kB / 1.28 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/1.934, allocations: 88.5 kB / 1.281 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/1.935, allocations: 0.8783 MB / 1.281 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/1.935, allocations: 3 kB / 1.281 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-05/1.935, allocations: 28.41 kB / 1.281 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/1.935, allocations: 33.39 kB / 1.281 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/1.937, allocations: 0.8293 MB / 1.282 GB, free: 6.297 MB / 0.9825 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.004056/1.941, allocations: 3.653 MB / 1.286 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/1.942, allocations: 1.105 MB / 1.287 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005435/1.943, allocations: 379.5 kB / 1.287 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006194/1.943, allocations: 424.4 kB / 1.288 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/1.943, allocations: 48.44 kB / 1.288 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.906e-06/1.943, allocations: 0 / 1.288 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.001931/1.945, allocations: 0.9882 MB / 1.289 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/1.945, allocations: 56.91 kB / 1.289 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009001/1.946, allocations: 0.8384 MB / 1.29 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/1.946, allocations: 39.73 kB / 1.29 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/1.947, allocations: 485.2 kB / 1.29 GB, free: 3.09 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.000145/1.947, allocations: 200.8 kB / 1.29 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/1.947, allocations: 54.56 kB / 1.29 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 5.12e-05/1.947, allocations: 329.6 kB / 1.291 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/1.947, allocations: 257.5 kB / 1.291 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005035/1.948, allocations: 382.2 kB / 1.291 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009468/1.949, allocations: 0.6098 MB / 1.292 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.949, allocations: 0 / 1.292 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001234/1.95, allocations: 0.7569 MB / 1.293 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.887e-05/1.95, allocations: 126.5 kB / 1.293 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/1.95, allocations: 0 / 1.293 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/1.95, allocations: 6.438 kB / 1.293 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005627/1.951, allocations: 131.8 kB / 1.293 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/1.951, allocations: 3.094 kB / 1.293 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/1.952, allocations: 138.6 kB / 1.293 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.446e-05/1.952, allocations: 26.12 kB / 1.293 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/1.952, allocations: 3.156 kB / 1.293 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001035/1.953, allocations: 0.6336 MB / 1.294 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/1.953, allocations: 5.359 kB / 1.294 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.741e-06/1.953, allocations: 5.719 kB / 1.294 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004983/1.953, allocations: 130.5 kB / 1.294 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/1.953, allocations: 2.438 kB / 1.294 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009237/1.954, allocations: 139.1 kB / 1.294 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/1.954, allocations: 17.94 kB / 1.294 GB, free: 2.148 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.0004725/1.955, allocations: 385.5 kB / 1.294 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/1.955, allocations: 101.7 kB / 1.294 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/1.956, allocations: 0.764 MB / 1.295 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/1.956, allocations: 9.062 kB / 1.295 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.956, allocations: 0 / 1.295 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009791/1.957, allocations: 0.9231 MB / 1.296 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/1.96, allocations: 2.272 MB / 1.298 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/1.96, allocations: 5.062 kB / 1.298 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006245/1.961, allocations: 139.2 kB / 1.298 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/1.961, allocations: 13.16 kB / 1.298 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.756e-05/1.961, allocations: 17.03 kB / 1.298 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.109e-05/1.961, allocations: 12.97 kB / 1.298 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.961, allocations: 6.219 kB / 1.298 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/1.964, allocations: 1.254 MB / 1.3 GB, free: 384 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005538/1.964, allocations: 263.7 kB / 1.3 GB, free: 228 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/1.964, allocations: 22.22 kB / 1.3 GB, free: 224 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008586/1.965, allocations: 103.2 kB / 1.3 GB, free: 212 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/1.965, allocations: 43.22 kB / 1.3 GB, free: 208 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/1.965, allocations: 28.19 kB / 1.3 GB, free: 204 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008289/1.966, allocations: 0.5841 MB / 1.301 GB, free: 92 kB / 0.9825 GB Notification: Performance of sort global known variables: time 4.6e-07/1.966, allocations: 2.875 kB / 1.301 GB, free: 92 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001452/1.968, allocations: 0.5323 MB / 1.301 GB, free: 16 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.0006003/1.968, allocations: 249 kB / 1.301 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001782/1.97, allocations: 0.9675 MB / 1.302 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/1.97, allocations: 4.062 kB / 1.302 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005573/1.971, allocations: 356 kB / 1.303 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003365/1.974, allocations: 0.6172 MB / 1.303 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/1.978, allocations: 2.67 MB / 1.306 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007246/1.978, allocations: 1.121 MB / 1.307 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001269/1.98, allocations: 302.3 kB / 1.307 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/1.98, allocations: 80.88 kB / 1.307 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of SimCode: time 1.172e-06/1.98, allocations: 0 / 1.307 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of Templates: time 0.03461/2.015, allocations: 19.66 MB / 1.327 GB, free: 7.414 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches