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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_latest_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.004698/0.004698, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001283/0.001283, allocations: 201.2 kB / 16.68 MB, free: 5.969 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.905/2.905, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00319/0.00319, allocations: 64.12 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2984, allocations: 162.2 MB / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.7598/1.058, allocations: 240 MB / 1.476 GB, free: 7.668 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.01141/1.07, allocations: 7.227 MB / 1.483 GB, free: 444 kB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000703/1.07, allocations: 51.69 kB / 1.483 GB, free: 392 kB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.00159/1.072, allocations: 0.7027 MB / 1.484 GB, free: 15.67 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 0.004177/1.076, allocations: 2.061 MB / 1.486 GB, free: 13.61 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.004153/1.08, allocations: 2.033 MB / 1.488 GB, free: 11.58 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 0.003599/1.084, allocations: 3.254 MB / 1.491 GB, free: 8.32 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/1.085, allocations: 1.135 MB / 1.492 GB, free: 7.168 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003655/1.089, allocations: 2.063 MB / 1.494 GB, free: 5.098 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001596/1.091, allocations: 0.9471 MB / 1.495 GB, free: 4.152 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.0001883/1.091, allocations: 120 kB / 1.495 GB, free: 4.035 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004028/1.095, allocations: 2.471 MB / 1.497 GB, free: 1.559 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.0004702/1.095, allocations: 462.7 kB / 1.498 GB, free: 1.105 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.0007582/1.096, allocations: 0.731 MB / 1.498 GB, free: 380 kB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.00345/1.1, allocations: 2.683 MB / 1.501 GB, free: 13.68 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/1.1, allocations: 4 kB / 1.501 GB, free: 13.68 MB / 1.201 GB Notification: Performance of FrontEnd: time 1.453e-06/1.1, allocations: 0 / 1.501 GB, free: 13.68 MB / 1.201 GB Notification: Performance of Transformations before backend: time 1.284e-05/1.1, allocations: 0 / 1.501 GB, free: 13.68 MB / 1.201 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.002744/1.102, allocations: 1.76 MB / 1.503 GB, free: 11.86 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/1.103, allocations: 8.031 kB / 1.503 GB, free: 11.85 MB / 1.201 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/1.103, allocations: 122.8 kB / 1.503 GB, free: 11.72 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/1.105, allocations: 434.7 kB / 1.503 GB, free: 11.3 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/1.107, allocations: 1.023 MB / 1.504 GB, free: 10.23 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/1.107, allocations: 66 kB / 1.504 GB, free: 10.17 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/1.107, allocations: 87.98 kB / 1.504 GB, free: 10.08 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/1.109, allocations: 0.8624 MB / 1.505 GB, free: 9.211 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/1.109, allocations: 7.891 kB / 1.505 GB, free: 9.203 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.811e-05/1.109, allocations: 36 kB / 1.505 GB, free: 9.168 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/1.109, allocations: 26 kB / 1.505 GB, free: 9.141 MB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/1.111, allocations: 0.8042 MB / 1.506 GB, free: 8.34 MB / 1.201 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.004818/1.115, allocations: 3.735 MB / 1.51 GB, free: 4.293 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/1.117, allocations: 1.087 MB / 1.511 GB, free: 3.086 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006543/1.118, allocations: 374.2 kB / 1.511 GB, free: 2.719 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007173/1.119, allocations: 404.9 kB / 1.512 GB, free: 2.25 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/1.119, allocations: 43.12 kB / 1.512 GB, free: 2.199 MB / 1.201 GB Notification: Performance of pre-optimization done (n=60): time 1.763e-06/1.119, allocations: 0 / 1.512 GB, free: 2.199 MB / 1.201 GB Notification: Performance of matching and sorting (n=60): time 0.002169/1.121, allocations: 0.9629 MB / 1.513 GB, free: 1.23 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/1.121, allocations: 55.97 kB / 1.513 GB, free: 1.164 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/1.122, allocations: 0.836 MB / 1.513 GB, free: 312 kB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 6.158e-05/1.122, allocations: 41.7 kB / 1.514 GB, free: 264 kB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/1.122, allocations: 492.7 kB / 1.514 GB, free: 15.77 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/1.123, allocations: 222.1 kB / 1.514 GB, free: 15.55 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001957/1.123, allocations: 114.2 kB / 1.514 GB, free: 15.43 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001383/1.123, allocations: 329.9 kB / 1.515 GB, free: 15.11 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/1.123, allocations: 251 kB / 1.515 GB, free: 14.86 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/1.124, allocations: 375.4 kB / 1.515 GB, free: 14.46 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/1.125, allocations: 0.5852 MB / 1.516 GB, free: 13.86 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.125, allocations: 0 / 1.516 GB, free: 13.86 MB / 1.217 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001422/1.127, allocations: 0.7404 MB / 1.517 GB, free: 13.11 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/1.127, allocations: 6.5 kB / 1.517 GB, free: 13.11 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/1.127, allocations: 4 kB / 1.517 GB, free: 13.1 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/1.127, allocations: 4 kB / 1.517 GB, free: 13.1 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/1.127, allocations: 127.8 kB / 1.517 GB, free: 12.97 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/1.127, allocations: 4 kB / 1.517 GB, free: 12.97 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006909/1.128, allocations: 75.67 kB / 1.517 GB, free: 12.89 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/1.128, allocations: 24 kB / 1.517 GB, free: 12.87 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008308/1.129, allocations: 497 kB / 1.517 GB, free: 12.38 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006299/1.13, allocations: 363.4 kB / 1.518 GB, free: 11.99 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001108/1.131, allocations: 0.5813 MB / 1.518 GB, free: 11.4 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.467e-06/1.131, allocations: 0 / 1.518 GB, free: 11.4 MB / 1.217 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001371/1.132, allocations: 0.7363 MB / 1.519 GB, free: 10.65 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/1.132, allocations: 4 kB / 1.519 GB, free: 10.65 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/1.132, allocations: 4 kB / 1.519 GB, free: 10.64 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.029e-06/1.132, allocations: 4.125 kB / 1.519 GB, free: 10.64 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/1.133, allocations: 124.8 kB / 1.519 GB, free: 10.52 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/1.133, allocations: 7.938 kB / 1.519 GB, free: 10.51 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006766/1.134, allocations: 63.67 kB / 1.519 GB, free: 10.45 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.926e-05/1.134, allocations: 20 kB / 1.519 GB, free: 10.43 MB / 1.217 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.0001724/1.134, allocations: 208.2 kB / 1.519 GB, free: 10.22 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/1.134, allocations: 119.2 kB / 1.519 GB, free: 10.1 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/1.135, allocations: 0.7403 MB / 1.52 GB, free: 9.363 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/1.135, allocations: 8 kB / 1.52 GB, free: 9.355 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.135, allocations: 0 / 1.52 GB, free: 9.355 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001314/1.137, allocations: 0.9072 MB / 1.521 GB, free: 8.363 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003418/1.14, allocations: 2.248 MB / 1.523 GB, free: 5.969 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/1.14, allocations: 4 kB / 1.523 GB, free: 5.965 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006753/1.141, allocations: 131.8 kB / 1.523 GB, free: 5.836 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/1.141, allocations: 8 kB / 1.523 GB, free: 5.828 MB / 1.217 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.351e-05/1.141, allocations: 20 kB / 1.523 GB, free: 5.809 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/1.141, allocations: 7.938 kB / 1.523 GB, free: 5.801 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.141, allocations: 4 kB / 1.523 GB, free: 5.797 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/1.143, allocations: 1.239 MB / 1.525 GB, free: 4.504 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003623/1.143, allocations: 268.3 kB / 1.525 GB, free: 4.223 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/1.144, allocations: 16.19 kB / 1.525 GB, free: 4.207 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006832/1.144, allocations: 40.58 kB / 1.525 GB, free: 4.168 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/1.144, allocations: 56.19 kB / 1.525 GB, free: 4.113 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.262e-05/1.144, allocations: 28 kB / 1.525 GB, free: 4.086 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.0008071/1.145, allocations: 0.5823 MB / 1.526 GB, free: 3.492 MB / 1.217 GB Notification: Performance of sort global known variables: time 1.7e-07/1.145, allocations: 0 / 1.526 GB, free: 3.492 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.00114/1.146, allocations: 0.538 MB / 1.526 GB, free: 2.953 MB / 1.217 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.002731/1.149, allocations: 1.914 MB / 1.528 GB, free: 0.9844 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.001849/1.151, allocations: 0.947 MB / 1.529 GB, free: 36 kB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.151, allocations: 4 kB / 1.529 GB, free: 32 kB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.0006544/1.152, allocations: 338.2 kB / 1.529 GB, free: 15.7 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/1.154, allocations: 0.6166 MB / 1.53 GB, free: 15.1 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/1.165, allocations: 7.62 MB / 1.537 GB, free: 7.254 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008008/1.166, allocations: 1.128 MB / 1.538 GB, free: 6.094 MB / 1.232 GB Notification: Performance of simCode: alias equations: time 0.0008785/1.167, allocations: 304.1 kB / 1.539 GB, free: 5.793 MB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005887/1.168, allocations: 411.2 kB / 1.539 GB, free: 5.395 MB / 1.232 GB Notification: Performance of SimCode: time 6.32e-07/1.168, allocations: 0 / 1.539 GB, free: 5.395 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06045/1.228, allocations: 29.37 MB / 1.568 GB, free: 8.441 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.561/10.79, allocations: 9.812 kB / 1.568 GB, free: 8.434 MB / 1.264 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches