Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="BuildingSystems_BuildingSystems_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.004764/0.004764, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001572/0.001572, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002513/0.002513, allocations: 292.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 169.3 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 96.08 kB / 0.681 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4208, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.6308/1.052, allocations: 239.9 MB / 1 GB, free: 19.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01079/1.063, allocations: 7.206 MB / 1.007 GB, free: 19.38 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/1.064, allocations: 49.06 kB / 1.007 GB, free: 19.38 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001547/1.066, allocations: 0.7091 MB / 1.008 GB, free: 19.37 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00443/1.07, allocations: 2.071 MB / 1.01 GB, free: 19.28 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004393/1.075, allocations: 2.031 MB / 1.012 GB, free: 19.21 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003779/1.078, allocations: 3.273 MB / 1.015 GB, free: 19.21 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/1.08, allocations: 1.134 MB / 1.016 GB, free: 19.1 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003315/1.083, allocations: 1.793 MB / 1.018 GB, free: 19.07 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001603/1.085, allocations: 0.9646 MB / 1.019 GB, free: 18.96 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001751/1.085, allocations: 123.6 kB / 1.019 GB, free: 18.96 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/1.089, allocations: 2.488 MB / 1.021 GB, free: 18.93 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003891/1.09, allocations: 463.4 kB / 1.022 GB, free: 18.88 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007412/1.09, allocations: 0.7186 MB / 1.023 GB, free: 18.69 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003874/1.094, allocations: 2.703 MB / 1.025 GB, free: 18.37 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/1.094, allocations: 0 / 1.025 GB, free: 18.37 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/1.094, allocations: 4.906 kB / 1.025 GB, free: 18.36 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.596e-05/1.094, allocations: 0 / 1.025 GB, free: 18.36 MB / 0.7169 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.002418/1.097, allocations: 1.756 MB / 1.027 GB, free: 17.4 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/1.097, allocations: 11.34 kB / 1.027 GB, free: 17.4 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001263/1.097, allocations: 129.5 kB / 1.027 GB, free: 17.36 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002504/1.099, allocations: 430.4 kB / 1.028 GB, free: 17.29 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/1.101, allocations: 1.03 MB / 1.029 GB, free: 16.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/1.101, allocations: 66.19 kB / 1.029 GB, free: 16.92 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/1.101, allocations: 84.27 kB / 1.029 GB, free: 16.92 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/1.102, allocations: 0.8608 MB / 1.029 GB, free: 16.86 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/1.103, allocations: 0 / 1.029 GB, free: 16.86 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.499e-05/1.103, allocations: 35.97 kB / 1.03 GB, free: 16.86 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.083e-05/1.103, allocations: 29.81 kB / 1.03 GB, free: 16.86 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/1.104, allocations: 0.8092 MB / 1.03 GB, free: 16.86 MB / 0.7169 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.004047/1.108, allocations: 3.657 MB / 1.034 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/1.109, allocations: 1.099 MB / 1.035 GB, free: 14.42 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005361/1.11, allocations: 376.5 kB / 1.035 GB, free: 14.29 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006488/1.111, allocations: 403.6 kB / 1.036 GB, free: 13.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/1.111, allocations: 48.27 kB / 1.036 GB, free: 13.86 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 3.136e-06/1.111, allocations: 0.75 kB / 1.036 GB, free: 13.86 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.001968/1.113, allocations: 0.9583 MB / 1.037 GB, free: 13.51 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/1.113, allocations: 59.53 kB / 1.037 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009229/1.114, allocations: 0.8383 MB / 1.038 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/1.114, allocations: 38.39 kB / 1.038 GB, free: 13.06 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/1.114, allocations: 482.4 kB / 1.038 GB, free: 12.68 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/1.114, allocations: 231 kB / 1.038 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/1.114, allocations: 112.7 kB / 1.038 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.119e-05/1.114, allocations: 328.5 kB / 1.039 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000498/1.115, allocations: 255.3 kB / 1.039 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006169/1.116, allocations: 366.4 kB / 1.039 GB, free: 11.86 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/1.117, allocations: 0.5933 MB / 1.04 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.117, allocations: 0 / 1.04 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001334/1.118, allocations: 0.7408 MB / 1.041 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/1.118, allocations: 4.844 kB / 1.041 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/1.118, allocations: 3.312 kB / 1.041 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/1.118, allocations: 2.844 kB / 1.041 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005383/1.119, allocations: 129 kB / 1.041 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/1.119, allocations: 5.188 kB / 1.041 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007075/1.119, allocations: 66.23 kB / 1.041 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/1.119, allocations: 29.75 kB / 1.041 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007063/1.12, allocations: 0.4943 MB / 1.041 GB, free: 11 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004677/1.121, allocations: 364.1 kB / 1.042 GB, free: 10.81 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008549/1.121, allocations: 0.5783 MB / 1.042 GB, free: 10.55 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.513e-06/1.121, allocations: 0 / 1.042 GB, free: 10.55 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001088/1.123, allocations: 0.7311 MB / 1.043 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/1.123, allocations: 13.78 kB / 1.043 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/1.123, allocations: 2.812 kB / 1.043 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.099e-06/1.123, allocations: 2.562 kB / 1.043 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/1.123, allocations: 121.6 kB / 1.043 GB, free: 10.24 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/1.123, allocations: 11.17 kB / 1.043 GB, free: 10.24 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006526/1.124, allocations: 59.91 kB / 1.043 GB, free: 10.21 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/1.124, allocations: 20 kB / 1.043 GB, free: 10.21 MB / 0.7169 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.0001426/1.124, allocations: 220.1 kB / 1.043 GB, free: 10 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/1.124, allocations: 115 kB / 1.044 GB, free: 9.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/1.125, allocations: 0.7407 MB / 1.044 GB, free: 9.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/1.125, allocations: 5.469 kB / 1.044 GB, free: 9.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/1.125, allocations: 0 / 1.044 GB, free: 9.633 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009481/1.126, allocations: 0.9095 MB / 1.045 GB, free: 8.926 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/1.129, allocations: 2.243 MB / 1.047 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/1.129, allocations: 2.719 kB / 1.047 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005845/1.13, allocations: 137.5 kB / 1.047 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/1.13, allocations: 4.875 kB / 1.047 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/1.13, allocations: 22.7 kB / 1.047 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/1.13, allocations: 8.125 kB / 1.047 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.13, allocations: 5.656 kB / 1.047 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/1.131, allocations: 1.232 MB / 1.049 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/1.132, allocations: 262.7 kB / 1.049 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/1.132, allocations: 27.95 kB / 1.049 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/1.132, allocations: 38.33 kB / 1.049 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.781e-05/1.132, allocations: 51.02 kB / 1.049 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/1.132, allocations: 27.05 kB / 1.049 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006123/1.133, allocations: 0.5856 MB / 1.05 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/1.133, allocations: 0 / 1.05 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001064/1.134, allocations: 0.5419 MB / 1.05 GB, free: 5.176 MB / 0.7169 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.002011/1.136, allocations: 1.903 MB / 1.052 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001491/1.138, allocations: 0.9459 MB / 1.053 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/1.138, allocations: 0 / 1.053 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004829/1.138, allocations: 345.6 kB / 1.053 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/1.14, allocations: 0.5981 MB / 1.054 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/1.152, allocations: 7.637 MB / 1.061 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008127/1.153, allocations: 1.124 MB / 1.062 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001141/1.154, allocations: 304 kB / 1.063 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006288/1.155, allocations: 415.3 kB / 1.063 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of SimCode: time 6.82e-07/1.155, allocations: 0 / 1.063 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0647/1.219, allocations: 29.37 MB / 1.092 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.554/10.77, allocations: 13.7 kB / 1.092 GB, free: 10.88 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)