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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_10_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_10_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006052/0.006052, allocations: 100.8 kB / 15.73 MB, free: 6.035 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.001478/0.001478, allocations: 198.1 kB / 16.68 MB, free: 5.953 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.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.426/2.426, allocations: 437 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002543/0.002543, allocations: 67.89 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7337/0.7363, allocations: 151.6 MB / 1.166 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.2402/0.9765, allocations: 239.9 MB / 1.4 GB, free: 3.012 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.01064/0.9872, allocations: 7.2 MB / 1.407 GB, free: 11.8 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.9885, allocations: 51.69 kB / 1.407 GB, free: 11.75 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.9902, allocations: 0.6949 MB / 1.408 GB, free: 11.05 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.004772/0.995, allocations: 2.082 MB / 1.41 GB, free: 8.961 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.004598/0.9997, allocations: 2.03 MB / 1.412 GB, free: 6.941 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.003609/1.003, allocations: 3.281 MB / 1.415 GB, free: 3.652 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/1.005, allocations: 1.137 MB / 1.417 GB, free: 2.492 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003417/1.008, allocations: 1.779 MB / 1.418 GB, free: 0.707 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001779/1.01, allocations: 0.9571 MB / 1.419 GB, free: 15.75 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 0.0002536/1.01, allocations: 124 kB / 1.419 GB, free: 15.62 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004095/1.014, allocations: 2.494 MB / 1.422 GB, free: 13.12 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.0005144/1.015, allocations: 462.7 kB / 1.422 GB, free: 12.67 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.0009098/1.016, allocations: 0.7193 MB / 1.423 GB, free: 11.95 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.003683/1.02, allocations: 2.684 MB / 1.425 GB, free: 9.258 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/1.02, allocations: 7.875 kB / 1.426 GB, free: 9.25 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.192e-06/1.02, allocations: 0 / 1.426 GB, free: 9.25 MB / 1.154 GB Notification: Performance of Transformations before backend: time 3.721e-05/1.02, allocations: 0 / 1.426 GB, free: 9.25 MB / 1.154 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.002869/1.023, allocations: 1.697 MB / 1.427 GB, free: 7.496 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/1.023, allocations: 8.922 kB / 1.427 GB, free: 7.488 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/1.023, allocations: 134.8 kB / 1.427 GB, free: 7.348 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/1.025, allocations: 425.9 kB / 1.428 GB, free: 6.93 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/1.027, allocations: 1.026 MB / 1.429 GB, free: 5.859 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/1.027, allocations: 62 kB / 1.429 GB, free: 5.801 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/1.027, allocations: 83.91 kB / 1.429 GB, free: 5.719 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/1.029, allocations: 0.8662 MB / 1.43 GB, free: 4.848 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/1.029, allocations: 4 kB / 1.43 GB, free: 4.844 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-05/1.029, allocations: 28 kB / 1.43 GB, free: 4.816 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/1.029, allocations: 30 kB / 1.43 GB, free: 4.785 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/1.031, allocations: 0.8081 MB / 1.431 GB, free: 3.977 MB / 1.154 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.004469/1.035, allocations: 3.643 MB / 1.434 GB, free: 36 kB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/1.037, allocations: 1.099 MB / 1.435 GB, free: 14.82 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000599/1.037, allocations: 367.5 kB / 1.436 GB, free: 14.46 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006775/1.038, allocations: 412.7 kB / 1.436 GB, free: 13.99 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/1.038, allocations: 43.12 kB / 1.436 GB, free: 13.94 MB / 1.17 GB Notification: Performance of pre-optimization done (n=60): time 1.974e-06/1.038, allocations: 0 / 1.436 GB, free: 13.94 MB / 1.17 GB Notification: Performance of matching and sorting (n=60): time 0.002062/1.04, allocations: 0.9584 MB / 1.437 GB, free: 12.98 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/1.04, allocations: 59.97 kB / 1.437 GB, free: 12.9 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009783/1.041, allocations: 0.836 MB / 1.438 GB, free: 12.04 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 5.954e-05/1.041, allocations: 45.7 kB / 1.438 GB, free: 11.99 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.000325/1.041, allocations: 476.1 kB / 1.438 GB, free: 11.52 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/1.042, allocations: 216.8 kB / 1.438 GB, free: 11.3 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/1.042, allocations: 110.2 kB / 1.439 GB, free: 11.19 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001022/1.042, allocations: 326 kB / 1.439 GB, free: 10.87 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005037/1.042, allocations: 259 kB / 1.439 GB, free: 10.61 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/1.043, allocations: 371.4 kB / 1.439 GB, free: 10.21 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/1.044, allocations: 0.5852 MB / 1.44 GB, free: 9.617 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/1.044, allocations: 4 kB / 1.44 GB, free: 9.613 MB / 1.17 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001323/1.045, allocations: 0.732 MB / 1.441 GB, free: 8.871 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/1.045, allocations: 11.98 kB / 1.441 GB, free: 8.859 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/1.045, allocations: 3.938 kB / 1.441 GB, free: 8.855 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/1.045, allocations: 4 kB / 1.441 GB, free: 8.852 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005654/1.046, allocations: 123.9 kB / 1.441 GB, free: 8.73 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/1.046, allocations: 4.125 kB / 1.441 GB, free: 8.727 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000719/1.047, allocations: 75.39 kB / 1.441 GB, free: 8.652 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/1.047, allocations: 23.94 kB / 1.441 GB, free: 8.629 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007746/1.048, allocations: 497.1 kB / 1.441 GB, free: 8.141 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005662/1.048, allocations: 371.4 kB / 1.442 GB, free: 7.746 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009915/1.049, allocations: 0.5735 MB / 1.442 GB, free: 7.16 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.835e-06/1.049, allocations: 4 kB / 1.442 GB, free: 7.156 MB / 1.17 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001275/1.05, allocations: 0.7243 MB / 1.443 GB, free: 6.422 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/1.051, allocations: 10.66 kB / 1.443 GB, free: 6.414 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/1.051, allocations: 3.938 kB / 1.443 GB, free: 6.41 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.094e-06/1.051, allocations: 4 kB / 1.443 GB, free: 6.406 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005622/1.051, allocations: 123.8 kB / 1.443 GB, free: 6.285 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/1.051, allocations: 4 kB / 1.443 GB, free: 6.281 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/1.052, allocations: 67.64 kB / 1.443 GB, free: 6.215 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/1.052, allocations: 24 kB / 1.443 GB, free: 6.191 MB / 1.17 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.000161/1.052, allocations: 220.1 kB / 1.444 GB, free: 5.969 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/1.052, allocations: 98.78 kB / 1.444 GB, free: 5.871 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/1.054, allocations: 0.7315 MB / 1.444 GB, free: 5.133 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/1.054, allocations: 8 kB / 1.444 GB, free: 5.125 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.054, allocations: 4 kB / 1.444 GB, free: 5.121 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00115/1.055, allocations: 0.9072 MB / 1.445 GB, free: 4.129 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/1.058, allocations: 2.243 MB / 1.447 GB, free: 1.746 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/1.058, allocations: 4 kB / 1.447 GB, free: 1.742 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006536/1.059, allocations: 135.8 kB / 1.448 GB, free: 1.609 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/1.059, allocations: 4 kB / 1.448 GB, free: 1.605 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.684e-05/1.059, allocations: 20.41 kB / 1.448 GB, free: 1.586 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.486e-06/1.059, allocations: 15.98 kB / 1.448 GB, free: 1.57 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/1.059, allocations: 4 kB / 1.448 GB, free: 1.566 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/1.061, allocations: 1.226 MB / 1.449 GB, free: 288 kB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/1.061, allocations: 259.7 kB / 1.449 GB, free: 8 kB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/1.061, allocations: 16.02 kB / 1.449 GB, free: 15.99 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006754/1.062, allocations: 41.45 kB / 1.449 GB, free: 15.95 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.621e-05/1.062, allocations: 56.31 kB / 1.449 GB, free: 15.89 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/1.062, allocations: 20 kB / 1.449 GB, free: 15.88 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.0007045/1.063, allocations: 0.5862 MB / 1.45 GB, free: 15.28 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.2e-07/1.063, allocations: 0 / 1.45 GB, free: 15.28 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.001122/1.064, allocations: 0.5299 MB / 1.45 GB, free: 14.75 MB / 1.186 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.002428/1.066, allocations: 1.921 MB / 1.452 GB, free: 12.77 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.001714/1.068, allocations: 0.9427 MB / 1.453 GB, free: 11.82 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/1.068, allocations: 4 kB / 1.453 GB, free: 11.82 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.0005703/1.068, allocations: 347.5 kB / 1.453 GB, free: 11.48 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/1.071, allocations: 0.6003 MB / 1.454 GB, free: 10.89 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.081, allocations: 7.582 MB / 1.461 GB, free: 3.082 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/1.082, allocations: 1.128 MB / 1.463 GB, free: 1.918 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0008621/1.083, allocations: 296.1 kB / 1.463 GB, free: 1.625 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005558/1.083, allocations: 415.3 kB / 1.463 GB, free: 1.223 MB / 1.186 GB Notification: Performance of SimCode: time 3.6e-07/1.083, allocations: 0 / 1.463 GB, free: 1.223 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08924/1.173, allocations: 29.38 MB / 1.492 GB, free: 4.215 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.349/10.52, allocations: 10.42 kB / 1.492 GB, free: 4.207 MB / 1.217 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_10_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches