Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_9_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.007671/0.007671, allocations: 100.7 kB / 15.73 MB, free: 6.059 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.001116/0.001116, allocations: 192.3 kB / 16.67 MB, free: 5.984 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.422/2.422, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 67.64 kB / 0.9504 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2255, allocations: 140.4 MB / 1.087 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.7814/1.007, allocations: 239.9 MB / 1.322 GB, free: 8.625 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01039/1.017, allocations: 7.211 MB / 1.329 GB, free: 8.434 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/1.019, allocations: 54.41 kB / 1.329 GB, free: 8.434 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001748/1.021, allocations: 0.6937 MB / 1.329 GB, free: 8.426 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004994/1.026, allocations: 2.075 MB / 1.332 GB, free: 8.336 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005434/1.031, allocations: 2.031 MB / 1.333 GB, free: 8.277 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004251/1.036, allocations: 3.27 MB / 1.337 GB, free: 8.223 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/1.037, allocations: 1.139 MB / 1.338 GB, free: 8.094 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003568/1.041, allocations: 1.788 MB / 1.34 GB, free: 7.953 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/1.043, allocations: 0.9688 MB / 1.34 GB, free: 7.801 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002264/1.043, allocations: 120.7 kB / 1.341 GB, free: 7.801 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00482/1.048, allocations: 2.491 MB / 1.343 GB, free: 7.777 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005841/1.048, allocations: 456.3 kB / 1.343 GB, free: 7.605 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0009823/1.049, allocations: 0.7147 MB / 1.344 GB, free: 7.191 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004381/1.054, allocations: 2.679 MB / 1.347 GB, free: 6.402 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/1.054, allocations: 5.625 kB / 1.347 GB, free: 6.402 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.282e-06/1.054, allocations: 3.438 kB / 1.347 GB, free: 6.402 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.556e-05/1.054, allocations: 0 / 1.347 GB, free: 6.402 MB / 1.014 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.002571/1.056, allocations: 1.707 MB / 1.348 GB, free: 5.297 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/1.056, allocations: 11.53 kB / 1.348 GB, free: 5.297 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/1.056, allocations: 126.8 kB / 1.349 GB, free: 5.211 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002634/1.059, allocations: 426.7 kB / 1.349 GB, free: 5.113 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/1.061, allocations: 1.02 MB / 1.35 GB, free: 4.559 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/1.061, allocations: 59.94 kB / 1.35 GB, free: 4.531 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/1.061, allocations: 87.84 kB / 1.35 GB, free: 4.5 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/1.062, allocations: 0.8682 MB / 1.351 GB, free: 4.16 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/1.062, allocations: 0 / 1.351 GB, free: 4.16 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.533e-05/1.062, allocations: 36.31 kB / 1.351 GB, free: 4.133 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.594e-05/1.062, allocations: 25.56 kB / 1.351 GB, free: 4.133 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/1.064, allocations: 0.8212 MB / 1.352 GB, free: 3.848 MB / 1.014 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.003994/1.068, allocations: 3.642 MB / 1.355 GB, free: 1.449 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/1.069, allocations: 1.089 MB / 1.356 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005518/1.07, allocations: 371 kB / 1.357 GB, free: 0.5 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006046/1.07, allocations: 412.2 kB / 1.357 GB, free: 116 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/1.07, allocations: 37.53 kB / 1.357 GB, free: 72 kB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 2.514e-06/1.07, allocations: 0 / 1.357 GB, free: 72 kB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.002161/1.073, allocations: 0.961 MB / 1.358 GB, free: 15.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/1.073, allocations: 62.33 kB / 1.358 GB, free: 15.68 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/1.074, allocations: 0.8388 MB / 1.359 GB, free: 15.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.152e-05/1.074, allocations: 38.72 kB / 1.359 GB, free: 15.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/1.074, allocations: 486.1 kB / 1.36 GB, free: 14.91 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/1.074, allocations: 205.2 kB / 1.36 GB, free: 14.75 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/1.074, allocations: 116.3 kB / 1.36 GB, free: 14.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001005/1.075, allocations: 331.7 kB / 1.36 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004739/1.075, allocations: 261.4 kB / 1.36 GB, free: 14.28 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005591/1.076, allocations: 365 kB / 1.361 GB, free: 14.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/1.077, allocations: 0.594 MB / 1.361 GB, free: 13.82 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/1.077, allocations: 0 / 1.361 GB, free: 13.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001355/1.078, allocations: 0.7347 MB / 1.362 GB, free: 13.52 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/1.078, allocations: 2.812 kB / 1.362 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/1.078, allocations: 3.75 kB / 1.362 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/1.078, allocations: 5.047 kB / 1.362 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/1.079, allocations: 131.6 kB / 1.362 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/1.079, allocations: 5.781 kB / 1.362 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008096/1.079, allocations: 71.28 kB / 1.362 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.201e-05/1.08, allocations: 20.97 kB / 1.362 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007864/1.08, allocations: 0.4898 MB / 1.363 GB, free: 13.22 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000539/1.081, allocations: 362.3 kB / 1.363 GB, free: 13.03 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000971/1.082, allocations: 0.5794 MB / 1.364 GB, free: 12.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.294e-06/1.082, allocations: 0 / 1.364 GB, free: 12.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001226/1.083, allocations: 0.7272 MB / 1.364 GB, free: 12.48 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/1.083, allocations: 8.219 kB / 1.364 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-06/1.083, allocations: 0 / 1.364 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.909e-06/1.083, allocations: 2.75 kB / 1.364 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000528/1.084, allocations: 127.2 kB / 1.365 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/1.084, allocations: 2.312 kB / 1.365 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007538/1.084, allocations: 73.61 kB / 1.365 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.417e-05/1.084, allocations: 21.94 kB / 1.365 GB, free: 12.43 MB / 1.029 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.0001971/1.085, allocations: 212.4 kB / 1.365 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/1.085, allocations: 108.2 kB / 1.365 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/1.086, allocations: 0.7403 MB / 1.366 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/1.086, allocations: 13.12 kB / 1.366 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/1.086, allocations: 0 / 1.366 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001142/1.087, allocations: 0.8997 MB / 1.367 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/1.091, allocations: 2.252 MB / 1.369 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/1.091, allocations: 3.375 kB / 1.369 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006417/1.091, allocations: 134 kB / 1.369 GB, free: 9.992 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/1.091, allocations: 5.438 kB / 1.369 GB, free: 9.992 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/1.092, allocations: 21.44 kB / 1.369 GB, free: 9.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/1.092, allocations: 7.188 kB / 1.369 GB, free: 9.98 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.092, allocations: 7.375 kB / 1.369 GB, free: 9.98 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/1.093, allocations: 1.235 MB / 1.37 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004142/1.094, allocations: 258.5 kB / 1.37 GB, free: 9.137 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/1.094, allocations: 17.55 kB / 1.37 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006881/1.095, allocations: 41.75 kB / 1.37 GB, free: 9.117 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/1.095, allocations: 50.89 kB / 1.37 GB, free: 9.105 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-05/1.095, allocations: 21.28 kB / 1.371 GB, free: 9.102 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0007165/1.095, allocations: 0.5814 MB / 1.371 GB, free: 8.852 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.1e-07/1.095, allocations: 2.469 kB / 1.371 GB, free: 8.852 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001178/1.097, allocations: 0.5311 MB / 1.372 GB, free: 8.75 MB / 1.029 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.002432/1.099, allocations: 1.92 MB / 1.373 GB, free: 7.52 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001666/1.101, allocations: 0.9473 MB / 1.374 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.101, allocations: 3.375 kB / 1.374 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005481/1.101, allocations: 343.7 kB / 1.375 GB, free: 7.137 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/1.104, allocations: 0.6074 MB / 1.375 GB, free: 6.941 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009839/1.114, allocations: 7.587 MB / 1.383 GB, free: 3.023 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000652/1.114, allocations: 1.133 MB / 1.384 GB, free: 2.117 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001028/1.116, allocations: 298.4 kB / 1.384 GB, free: 1.98 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005383/1.116, allocations: 409.2 kB / 1.385 GB, free: 1.645 MB / 1.029 GB Notification: Performance of SimCode: time 6.52e-07/1.116, allocations: 0 / 1.385 GB, free: 1.645 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05927/1.175, allocations: 29.36 MB / 1.413 GB, free: 9.594 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.459/10.63, allocations: 19.02 kB / 1.413 GB, free: 9.578 MB / 1.061 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches