Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.001684/0.001684, allocations: 100.7 kB / 16.4 MB, free: 6 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.001828/0.001828, allocations: 197.1 kB / 17.34 MB, free: 5.582 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.759/0.759, allocations: 122.9 MB / 414.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 67.27 kB / 0.568 GB, free: 29.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1381, allocations: 77.94 MB / 0.6441 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4554/0.5936, allocations: 112.6 MB / 0.754 GB, free: 30.6 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03163/0.6253, allocations: 20.24 MB / 0.7738 GB, free: 30.25 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006003/0.6313, allocations: 109.3 kB / 0.7739 GB, free: 30.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003527/0.6349, allocations: 1.299 MB / 0.7752 GB, free: 30.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01081/0.6457, allocations: 3.879 MB / 0.779 GB, free: 30.08 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007597/0.6533, allocations: 3.127 MB / 0.782 GB, free: 29.86 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008319/0.6617, allocations: 7.24 MB / 0.7891 GB, free: 26.68 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002833/0.6645, allocations: 2.568 MB / 0.7916 GB, free: 25.51 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005197/0.6697, allocations: 2.903 MB / 0.7944 GB, free: 24.3 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002641/0.6724, allocations: 2.121 MB / 0.7965 GB, free: 23.5 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003432/0.6727, allocations: 253.8 kB / 0.7967 GB, free: 23.5 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003572/0.6763, allocations: 1.648 MB / 0.7984 GB, free: 22.76 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005491/0.6769, allocations: 0.694 MB / 0.799 GB, free: 22.23 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001524/0.6784, allocations: 1.517 MB / 0.8005 GB, free: 21.21 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005225/0.6836, allocations: 4.411 MB / 0.8048 GB, free: 18.3 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.6837, allocations: 0 / 0.8048 GB, free: 18.3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.863e-06/0.6837, allocations: 0 / 0.8048 GB, free: 18.3 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.745e-05/0.6837, allocations: 0 / 0.8048 GB, free: 18.3 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004357/0.6881, allocations: 3.338 MB / 0.8081 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.6881, allocations: 10.5 kB / 0.8081 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001939/0.6883, allocations: 214.9 kB / 0.8083 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006639/0.689, allocations: 345.3 kB / 0.8086 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003047/0.6921, allocations: 2.214 MB / 0.8108 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.889e-05/0.6921, allocations: 128.9 kB / 0.8109 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.6924, allocations: 165.2 kB / 0.8111 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.6946, allocations: 1.612 MB / 0.8126 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.6947, allocations: 10.34 kB / 0.8127 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001669/0.6948, allocations: 61.31 kB / 0.8127 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-05/0.6949, allocations: 44.44 kB / 0.8128 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.6966, allocations: 1.147 MB / 0.8139 GB, free: 12.18 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.009411/0.7061, allocations: 7.934 MB / 0.8216 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007313/0.7068, allocations: 477.9 kB / 0.8221 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004091/0.7072, allocations: 323 kB / 0.8224 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004332/0.7077, allocations: 0.7536 MB / 0.8231 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.7077, allocations: 47.12 kB / 0.8232 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.525e-06/0.7077, allocations: 0 / 0.8232 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001915/0.7097, allocations: 0.9972 MB / 0.8241 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.7097, allocations: 55.97 kB / 0.8242 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/0.7124, allocations: 2.343 MB / 0.8265 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001503/0.7126, allocations: 45.7 kB / 0.8265 GB, free: 15 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009563/0.7135, allocations: 1.169 MB / 0.8277 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.7138, allocations: 230.3 kB / 0.8279 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/0.7141, allocations: 250.8 kB / 0.8281 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.7142, allocations: 349.9 kB / 0.8285 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.7149, allocations: 353.9 kB / 0.8288 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009208/0.7158, allocations: 0.7595 MB / 0.8295 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.7172, allocations: 0.9732 MB / 0.8305 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.7172, allocations: 4 kB / 0.8305 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002381/0.7196, allocations: 1.312 MB / 0.8318 GB, free: 9.367 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.7196, allocations: 8 kB / 0.8318 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.7197, allocations: 8 kB / 0.8318 GB, free: 9.352 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.7197, allocations: 16 kB / 0.8318 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009774/0.7207, allocations: 252.2 kB / 0.832 GB, free: 9.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.7207, allocations: 19.92 kB / 0.8321 GB, free: 9.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.7224, allocations: 174.8 kB / 0.8322 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-05/0.7225, allocations: 55.98 kB / 0.8323 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001345/0.7239, allocations: 0.7563 MB / 0.833 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008909/0.7248, allocations: 0.7426 MB / 0.8338 GB, free: 7.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001297/0.7261, allocations: 0.9483 MB / 0.8347 GB, free: 6.117 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.771e-06/0.7261, allocations: 8 kB / 0.8347 GB, free: 6.109 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002358/0.7284, allocations: 1.27 MB / 0.8359 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.7285, allocations: 10.19 kB / 0.8359 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.7285, allocations: 8.875 kB / 0.8359 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.7285, allocations: 16 kB / 0.836 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009165/0.7294, allocations: 251.6 kB / 0.8362 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.038e-05/0.7295, allocations: 19.94 kB / 0.8362 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.731, allocations: 115.5 kB / 0.8363 GB, free: 4.418 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.896e-05/0.7311, allocations: 55.98 kB / 0.8364 GB, free: 4.363 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0002831/0.7314, allocations: 263.8 kB / 0.8366 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003553/0.7317, allocations: 246.4 kB / 0.8369 GB, free: 3.855 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.7334, allocations: 0.8783 MB / 0.8377 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.7335, allocations: 15.98 kB / 0.8377 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.7335, allocations: 3.938 kB / 0.8377 GB, free: 2.945 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009829/0.7345, allocations: 0.6852 MB / 0.8384 GB, free: 2.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/0.7383, allocations: 2.584 MB / 0.8409 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.7383, allocations: 4.094 kB / 0.8409 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.7389, allocations: 123.9 kB / 0.8411 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.7389, allocations: 4 kB / 0.8411 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.739, allocations: 16 kB / 0.8411 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.739, allocations: 4 kB / 0.8411 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.739, allocations: 3.938 kB / 0.8411 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.741, allocations: 1.33 MB / 0.8424 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007313/0.7417, allocations: 431.3 kB / 0.8428 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.742, allocations: 12 kB / 0.8428 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009679/0.7429, allocations: 51.94 kB / 0.8429 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.743, allocations: 44.44 kB / 0.8429 GB, free: 13.53 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.193e-05/0.7431, allocations: 31.98 kB / 0.8429 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002074/0.7452, allocations: 1.569 MB / 0.8445 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7452, allocations: 0 / 0.8445 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002649/0.7478, allocations: 1.111 MB / 0.8455 GB, free: 10.81 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.00392/0.7518, allocations: 2.529 MB / 0.848 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002499/0.7543, allocations: 1.362 MB / 0.8493 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.7543, allocations: 4 kB / 0.8494 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005476/0.7549, allocations: 320.4 kB / 0.8497 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005788/0.7607, allocations: 1.388 MB / 0.851 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02191/0.7826, allocations: 15 MB / 0.8657 GB, free: 6.008 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.7838, allocations: 1.59 MB / 0.8672 GB, free: 4.383 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001899/0.7857, allocations: 0.4947 MB / 0.8677 GB, free: 3.883 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/0.7868, allocations: 0.9639 MB / 0.8686 GB, free: 2.918 MB / 0.6231 GB Notification: Performance of SimCode: time 1.182e-06/0.7868, allocations: 0 / 0.8686 GB, free: 2.918 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/0.8964, allocations: 64.27 MB / 0.9314 GB, free: 3.312 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.3, allocations: 3.938 kB / 0.9314 GB, free: 3.309 MB / 0.6856 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)