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.007992/0.007992, allocations: 95.58 kB / 15.73 MB, free: 6.039 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.002559/0.002559, allocations: 204.5 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002129, allocations: 278.8 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9631/0.9631, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001884, allocations: 103.8 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1533, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.5423/0.6956, allocations: 239.8 MB / 1 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01068/0.7063, allocations: 7.214 MB / 1.007 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.7077, allocations: 51.69 kB / 1.007 GB, free: 11.81 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.7094, allocations: 0.7261 MB / 1.008 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004657/0.7141, allocations: 2.162 MB / 1.01 GB, free: 8.906 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.004331/0.7184, allocations: 2.057 MB / 1.012 GB, free: 6.859 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004108/0.7226, allocations: 3.281 MB / 1.015 GB, free: 3.566 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.7243, allocations: 1.141 MB / 1.016 GB, free: 2.41 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003691/0.728, allocations: 1.856 MB / 1.018 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002076/0.7301, allocations: 0.9638 MB / 1.019 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0003907/0.7305, allocations: 124 kB / 1.019 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005057/0.7355, allocations: 2.494 MB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0006892/0.7362, allocations: 458.7 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001169/0.7374, allocations: 0.7233 MB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004848/0.7423, allocations: 2.698 MB / 1.025 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.7423, allocations: 0 / 1.025 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7423, allocations: 0 / 1.025 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.163e-05/0.7424, allocations: 0 / 1.025 GB, free: 9.078 MB / 0.7794 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.003207/0.7456, allocations: 1.765 MB / 1.027 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.7456, allocations: 8.031 kB / 1.027 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001959/0.7458, allocations: 134.8 kB / 1.027 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002587/0.7484, allocations: 426.7 kB / 1.028 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.7502, allocations: 1.031 MB / 1.029 GB, free: 5.613 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.7503, allocations: 63.38 kB / 1.029 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.7504, allocations: 80 kB / 1.029 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.7519, allocations: 0.8663 MB / 1.03 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.668e-05/0.752, allocations: 4 kB / 1.03 GB, free: 4.598 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.427e-05/0.7521, allocations: 31.94 kB / 1.03 GB, free: 4.566 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.542e-05/0.7521, allocations: 37.98 kB / 1.03 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.7536, allocations: 0.8003 MB / 1.031 GB, free: 3.73 MB / 0.7794 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.004531/0.7581, allocations: 3.655 MB / 1.034 GB, free: 15.78 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.7596, allocations: 1.09 MB / 1.035 GB, free: 14.57 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005827/0.7602, allocations: 375.4 kB / 1.036 GB, free: 14.21 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006337/0.7608, allocations: 408.9 kB / 1.036 GB, free: 13.73 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.7609, allocations: 43.12 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of pre-optimization done (n=60): time 1.913e-06/0.7609, allocations: 0 / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of matching and sorting (n=60): time 0.002041/0.7629, allocations: 0.9551 MB / 1.037 GB, free: 12.73 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.763, allocations: 63.97 kB / 1.037 GB, free: 12.65 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.764, allocations: 0.8321 MB / 1.038 GB, free: 11.8 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.764, allocations: 45.7 kB / 1.038 GB, free: 11.75 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.7644, allocations: 484.7 kB / 1.038 GB, free: 11.27 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.7646, allocations: 226 kB / 1.039 GB, free: 11.04 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.7647, allocations: 110.2 kB / 1.039 GB, free: 10.93 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.7649, allocations: 329.9 kB / 1.039 GB, free: 10.6 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004893/0.7653, allocations: 259 kB / 1.039 GB, free: 10.34 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005983/0.766, allocations: 372.5 kB / 1.04 GB, free: 9.945 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.767, allocations: 0.586 MB / 1.04 GB, free: 9.348 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.767, allocations: 0 / 1.04 GB, free: 9.348 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001313/0.7683, allocations: 0.7442 MB / 1.041 GB, free: 8.594 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.7684, allocations: 8 kB / 1.041 GB, free: 8.586 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.7684, allocations: 0 / 1.041 GB, free: 8.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.7684, allocations: 4 kB / 1.041 GB, free: 8.582 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005531/0.769, allocations: 131.9 kB / 1.041 GB, free: 8.453 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.769, allocations: 4.688 kB / 1.041 GB, free: 8.449 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00073/0.7697, allocations: 71.58 kB / 1.041 GB, free: 8.379 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.649e-05/0.7698, allocations: 20 kB / 1.041 GB, free: 8.359 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007651/0.7706, allocations: 497 kB / 1.042 GB, free: 7.871 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005544/0.7711, allocations: 367.4 kB / 1.042 GB, free: 7.48 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000981/0.7721, allocations: 0.5774 MB / 1.042 GB, free: 6.891 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.076e-06/0.7721, allocations: 4 kB / 1.042 GB, free: 6.887 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001287/0.7734, allocations: 0.7288 MB / 1.043 GB, free: 6.148 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.7734, allocations: 8 kB / 1.043 GB, free: 6.141 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.7734, allocations: 5.062 kB / 1.043 GB, free: 6.137 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.7735, allocations: 4 kB / 1.043 GB, free: 6.133 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000534/0.774, allocations: 123.8 kB / 1.043 GB, free: 6.012 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.774, allocations: 4 kB / 1.043 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.7747, allocations: 67.86 kB / 1.043 GB, free: 5.941 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.7748, allocations: 20 kB / 1.043 GB, free: 5.922 MB / 0.795 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.0002016/0.775, allocations: 216.8 kB / 1.044 GB, free: 5.703 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.7752, allocations: 111.2 kB / 1.044 GB, free: 5.594 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.7767, allocations: 0.7393 MB / 1.044 GB, free: 4.848 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.7767, allocations: 8 kB / 1.044 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.7767, allocations: 0 / 1.044 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001174/0.7779, allocations: 0.9034 MB / 1.045 GB, free: 3.848 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.7812, allocations: 2.247 MB / 1.048 GB, free: 1.465 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.7813, allocations: 4 kB / 1.048 GB, free: 1.461 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006564/0.7819, allocations: 140.2 kB / 1.048 GB, free: 1.324 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.782, allocations: 11.98 kB / 1.048 GB, free: 1.312 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.782, allocations: 16 kB / 1.048 GB, free: 1.297 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.066e-05/0.782, allocations: 11.98 kB / 1.048 GB, free: 1.285 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.782, allocations: 7.938 kB / 1.048 GB, free: 1.277 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.784, allocations: 1.231 MB / 1.049 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004595/0.7845, allocations: 264.2 kB / 1.049 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.7846, allocations: 12 kB / 1.049 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006969/0.7853, allocations: 43.95 kB / 1.049 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.7855, allocations: 56.25 kB / 1.049 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.275e-05/0.7855, allocations: 20.12 kB / 1.049 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000822/0.7864, allocations: 0.5862 MB / 1.05 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7864, allocations: 0 / 1.05 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001305/0.7877, allocations: 0.5419 MB / 1.05 GB, free: 14.44 MB / 0.8106 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.002524/0.7902, allocations: 1.922 MB / 1.052 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001762/0.792, allocations: 0.9392 MB / 1.053 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.792, allocations: 8.062 kB / 1.053 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005715/0.7926, allocations: 342.2 kB / 1.054 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.7952, allocations: 0.6034 MB / 1.054 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.8061, allocations: 7.627 MB / 1.062 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006909/0.8068, allocations: 1.128 MB / 1.063 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0009897/0.8078, allocations: 308 kB / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005495/0.8083, allocations: 411.3 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of SimCode: time 8.72e-07/0.8084, allocations: 4 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05646/0.8648, allocations: 29.37 MB / 1.092 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.206/10.07, allocations: 6.391 kB / 1.092 GB, free: 3.988 MB / 0.8419 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)