Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="IBPSA_latest_IBPSA_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.001277/0.001277, allocations: 101.2 kB / 16.27 MB, free: 5.969 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.001185/0.001186, allocations: 194.2 kB / 17.2 MB, free: 5.598 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.273/1.273, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7262/0.7262, allocations: 122.8 MB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 67.89 kB / 0.4912 GB, free: 7.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3052, allocations: 77.92 MB / 0.5673 GB, free: 32.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FixedResistances.Examples.FlowJunction): time 0.4973/0.8025, allocations: 239.9 MB / 0.8015 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009301/0.8118, allocations: 7.208 MB / 0.8085 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.8133, allocations: 50.31 kB / 0.8086 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.8148, allocations: 0.6996 MB / 0.8093 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004149/0.819, allocations: 2.07 MB / 0.8113 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004014/0.823, allocations: 2.015 MB / 0.8133 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003298/0.8263, allocations: 3.274 MB / 0.8165 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.8277, allocations: 1.134 MB / 0.8176 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003292/0.831, allocations: 1.781 MB / 0.8193 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.8325, allocations: 0.9653 MB / 0.8202 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001785/0.8327, allocations: 123.5 kB / 0.8204 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00442/0.8371, allocations: 2.488 MB / 0.8228 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004023/0.8375, allocations: 460.5 kB / 0.8232 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007483/0.8383, allocations: 0.7218 MB / 0.8239 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003674/0.8419, allocations: 2.656 MB / 0.8265 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.842, allocations: 0 / 0.8265 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.12e-07/0.842, allocations: 0.6562 kB / 0.8265 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.543e-05/0.842, allocations: 0 / 0.8265 GB, free: 11.94 MB / 0.5762 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.002356/0.8444, allocations: 1.714 MB / 0.8282 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.8444, allocations: 15.31 kB / 0.8282 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.8445, allocations: 124.5 kB / 0.8283 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002534/0.8471, allocations: 418 kB / 0.8287 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.8483, allocations: 0.9683 MB / 0.8297 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.8484, allocations: 59.59 kB / 0.8297 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.8485, allocations: 86.84 kB / 0.8298 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.8498, allocations: 0.8722 MB / 0.8307 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.8499, allocations: 0 / 0.8307 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.473e-05/0.8499, allocations: 30.69 kB / 0.8307 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.079e-05/0.85, allocations: 29.28 kB / 0.8307 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.8513, allocations: 0.8138 MB / 0.8315 GB, free: 8.828 MB / 0.5762 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.003797/0.8551, allocations: 3.667 MB / 0.8351 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.8563, allocations: 1.094 MB / 0.8362 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005022/0.8568, allocations: 371 kB / 0.8365 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000573/0.8574, allocations: 410.8 kB / 0.8369 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.8574, allocations: 37.62 kB / 0.837 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.325e-06/0.8574, allocations: 2.5 kB / 0.837 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001834/0.8593, allocations: 0.9565 MB / 0.8379 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.279e-05/0.8593, allocations: 61.56 kB / 0.838 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008052/0.8601, allocations: 0.8442 MB / 0.8388 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.8602, allocations: 40.33 kB / 0.8388 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.8604, allocations: 472.8 kB / 0.8393 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.8605, allocations: 219 kB / 0.8395 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.8607, allocations: 111.9 kB / 0.8396 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.977e-05/0.8608, allocations: 332.9 kB / 0.8399 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004241/0.8612, allocations: 257.9 kB / 0.8401 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000481/0.8617, allocations: 363.1 kB / 0.8405 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009105/0.8626, allocations: 0.594 MB / 0.8411 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.8626, allocations: 0 / 0.8411 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001185/0.8638, allocations: 0.734 MB / 0.8418 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.8638, allocations: 4 kB / 0.8418 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.8638, allocations: 0 / 0.8418 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.8639, allocations: 4 kB / 0.8418 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.8644, allocations: 131.5 kB / 0.8419 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.8644, allocations: 8.125 kB / 0.8419 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000798/0.8652, allocations: 67.39 kB / 0.842 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.251e-05/0.8653, allocations: 24 kB / 0.842 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000721/0.866, allocations: 0.4893 MB / 0.8425 GB, free: 380 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004804/0.8665, allocations: 362.7 kB / 0.8428 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001003/0.8675, allocations: 0.5824 MB / 0.8434 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.413e-06/0.8675, allocations: 192 / 0.8434 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001197/0.8687, allocations: 0.7176 MB / 0.8441 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.8688, allocations: 13.81 kB / 0.8441 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-06/0.8688, allocations: 0 / 0.8441 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.02e-06/0.8688, allocations: 6.625 kB / 0.8441 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.8693, allocations: 129 kB / 0.8443 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.8693, allocations: 7.938 kB / 0.8443 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007398/0.8701, allocations: 62.27 kB / 0.8443 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.8701, allocations: 27.98 kB / 0.8443 GB, free: 14.45 MB / 0.5919 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.000205/0.8703, allocations: 218.2 kB / 0.8446 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.8705, allocations: 102.8 kB / 0.8447 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.8719, allocations: 0.7392 MB / 0.8454 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.8719, allocations: 11.94 kB / 0.8454 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.8719, allocations: 3.984 kB / 0.8454 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001119/0.8731, allocations: 0.8981 MB / 0.8463 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.8762, allocations: 2.249 MB / 0.8485 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.8762, allocations: 4 kB / 0.8485 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006345/0.8768, allocations: 136 kB / 0.8486 GB, free: 9.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.8769, allocations: 8 kB / 0.8486 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.753e-05/0.8769, allocations: 23.98 kB / 0.8486 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/0.8769, allocations: 10.47 kB / 0.8486 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.8769, allocations: 8 kB / 0.8486 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.8788, allocations: 1.226 MB / 0.8498 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.8791, allocations: 255.7 kB / 0.8501 GB, free: 8.316 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.8793, allocations: 19.98 kB / 0.8501 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006627/0.8799, allocations: 47.89 kB / 0.8502 GB, free: 8.25 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.88, allocations: 42.92 kB / 0.8502 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-05/0.8801, allocations: 23.98 kB / 0.8502 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006997/0.8808, allocations: 0.5862 MB / 0.8508 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8808, allocations: 0 / 0.8508 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001151/0.882, allocations: 0.5378 MB / 0.8513 GB, free: 7.051 MB / 0.5919 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.002343/0.8843, allocations: 1.922 MB / 0.8532 GB, free: 5.094 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001839/0.8862, allocations: 1.009 MB / 0.8542 GB, free: 4.113 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.8862, allocations: 0 / 0.8542 GB, free: 4.113 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000579/0.8868, allocations: 340.8 kB / 0.8545 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.8893, allocations: 0.5979 MB / 0.8551 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.8997, allocations: 7.983 MB / 0.8629 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.9003, allocations: 1.128 MB / 0.864 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001055/0.9014, allocations: 300 kB / 0.8643 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005189/0.9019, allocations: 415.3 kB / 0.8647 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of SimCode: time 7.92e-07/0.9019, allocations: 0 / 0.8647 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04876/0.9507, allocations: 29.14 MB / 0.8931 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.703, allocations: 6.125 kB / 0.8931 GB, free: 12.4 MB / 0.6387 GB (rm -f IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_FixedResistances_Examples_FlowJunction.fmu > IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)