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.001011/0.001011, allocations: 99.84 kB / 16.4 MB, free: 6.461 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.0009441/0.0009441, allocations: 196 kB / 17.34 MB, free: 5.719 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.21/1.21, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6796/0.6796, allocations: 122.9 MB / 414.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 65.05 kB / 0.568 GB, free: 28.9 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1146, 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.3742/0.4889, allocations: 112.6 MB / 0.754 GB, free: 30.54 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02466/0.5136, allocations: 20.25 MB / 0.7738 GB, free: 30.2 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003466/0.5171, allocations: 105.2 kB / 0.7739 GB, free: 30.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002781/0.5199, allocations: 1.274 MB / 0.7752 GB, free: 30.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009075/0.529, allocations: 3.69 MB / 0.7788 GB, free: 30.03 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006959/0.5359, allocations: 3.124 MB / 0.7818 GB, free: 29.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009114/0.5451, allocations: 7.223 MB / 0.7889 GB, free: 26.77 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.5478, allocations: 2.571 MB / 0.7914 GB, free: 25.59 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004565/0.5524, allocations: 2.818 MB / 0.7941 GB, free: 24.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002151/0.5545, allocations: 2.118 MB / 0.7962 GB, free: 23.62 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002871/0.5548, allocations: 257.8 kB / 0.7964 GB, free: 23.62 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002934/0.5578, allocations: 1.649 MB / 0.798 GB, free: 22.89 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004487/0.5582, allocations: 0.6928 MB / 0.7987 GB, free: 22.37 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.5594, allocations: 1.512 MB / 0.8002 GB, free: 21.35 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004/0.5634, allocations: 4.39 MB / 0.8045 GB, free: 18.46 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.5635, allocations: 0 / 0.8045 GB, free: 18.46 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5635, allocations: 0 / 0.8045 GB, free: 18.46 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.919e-05/0.5635, allocations: 0 / 0.8045 GB, free: 18.46 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.00369/0.5672, allocations: 3.235 MB / 0.8076 GB, free: 16.11 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.5672, allocations: 11.19 kB / 0.8077 GB, free: 16.11 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001898/0.5674, allocations: 219.1 kB / 0.8079 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005848/0.568, allocations: 329 kB / 0.8082 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002663/0.5707, allocations: 2.197 MB / 0.8103 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.896e-05/0.5708, allocations: 123.5 kB / 0.8104 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.571, allocations: 171.3 kB / 0.8106 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/0.5729, allocations: 1.617 MB / 0.8122 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.5729, allocations: 6.844 kB / 0.8122 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.5731, allocations: 64 kB / 0.8123 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-05/0.5731, allocations: 41.66 kB / 0.8123 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.5747, allocations: 1.147 MB / 0.8134 GB, free: 12.43 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.00721/0.582, allocations: 7.916 MB / 0.8211 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005952/0.5826, allocations: 481.9 kB / 0.8216 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.583, allocations: 323 kB / 0.8219 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003709/0.5833, allocations: 0.748 MB / 0.8226 GB, free: 3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.5834, allocations: 43.12 kB / 0.8227 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.234e-06/0.5834, allocations: 0 / 0.8227 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001532/0.5849, allocations: 0.9919 MB / 0.8237 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.585, allocations: 59.97 kB / 0.8237 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002282/0.5872, allocations: 2.335 MB / 0.826 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.679e-05/0.5873, allocations: 49.7 kB / 0.826 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008687/0.5882, allocations: 1.15 MB / 0.8272 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.5884, allocations: 216.3 kB / 0.8274 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.5887, allocations: 258.6 kB / 0.8276 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.5889, allocations: 345.9 kB / 0.8279 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005981/0.5895, allocations: 357.9 kB / 0.8283 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/0.5903, allocations: 0.7478 MB / 0.829 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/0.5917, allocations: 0.9848 MB / 0.83 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.5917, allocations: 8 kB / 0.83 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002113/0.5938, allocations: 1.299 MB / 0.8313 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.5939, allocations: 8 kB / 0.8313 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.5939, allocations: 8 kB / 0.8313 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.5939, allocations: 12.69 kB / 0.8313 GB, free: 9.844 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009171/0.5948, allocations: 255.6 kB / 0.8315 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.02e-05/0.5949, allocations: 19.92 kB / 0.8315 GB, free: 9.574 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.5961, allocations: 158.5 kB / 0.8317 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.376e-05/0.5962, allocations: 55.98 kB / 0.8317 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001191/0.5974, allocations: 0.7602 MB / 0.8325 GB, free: 8.598 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000889/0.5983, allocations: 0.7348 MB / 0.8332 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001298/0.5996, allocations: 0.96 MB / 0.8341 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.022e-06/0.5997, allocations: 4 kB / 0.8341 GB, free: 6.625 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00194/0.6016, allocations: 1.254 MB / 0.8354 GB, free: 5.359 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.6016, allocations: 8 kB / 0.8354 GB, free: 5.352 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.6016, allocations: 12 kB / 0.8354 GB, free: 5.34 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.6017, allocations: 16.03 kB / 0.8354 GB, free: 5.324 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008359/0.6025, allocations: 251.6 kB / 0.8356 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.6025, allocations: 19.92 kB / 0.8357 GB, free: 5.059 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.6038, allocations: 127.1 kB / 0.8358 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/0.6039, allocations: 48 kB / 0.8358 GB, free: 4.887 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.0002356/0.6041, allocations: 259.9 kB / 0.8361 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000308/0.6044, allocations: 237.3 kB / 0.8363 GB, free: 4.391 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.6059, allocations: 0.878 MB / 0.8372 GB, free: 3.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.606, allocations: 11.97 kB / 0.8372 GB, free: 3.488 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.606, allocations: 0 / 0.8372 GB, free: 3.488 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000923/0.6069, allocations: 0.6892 MB / 0.8378 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.6103, allocations: 2.583 MB / 0.8404 GB, free: 132 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.6103, allocations: 4 kB / 0.8404 GB, free: 128 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.6108, allocations: 123.9 kB / 0.8405 GB, free: 4 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.6108, allocations: 4 kB / 0.8405 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.788e-05/0.6109, allocations: 15.95 kB / 0.8405 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.6109, allocations: 4 kB / 0.8405 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.6109, allocations: 4 kB / 0.8405 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.6127, allocations: 1.325 MB / 0.8418 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006091/0.6133, allocations: 414 kB / 0.8422 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.6135, allocations: 12 kB / 0.8422 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008566/0.6144, allocations: 43.94 kB / 0.8423 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.775e-05/0.6145, allocations: 52.44 kB / 0.8423 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.706e-05/0.6146, allocations: 31.98 kB / 0.8423 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001964/0.6165, allocations: 1.569 MB / 0.8439 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6165, allocations: 0 / 0.8439 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002354/0.6189, allocations: 1.111 MB / 0.845 GB, free: 11.37 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.003526/0.6224, allocations: 2.505 MB / 0.8474 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002174/0.6246, allocations: 1.361 MB / 0.8487 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6246, allocations: 0 / 0.8487 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0004816/0.6251, allocations: 324.5 kB / 0.849 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004979/0.6301, allocations: 1.393 MB / 0.8504 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/0.6493, allocations: 14.91 MB / 0.865 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.6504, allocations: 1.586 MB / 0.8665 GB, free: 5.031 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001644/0.652, allocations: 0.4909 MB / 0.867 GB, free: 4.535 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/0.6532, allocations: 0.9678 MB / 0.8679 GB, free: 3.566 MB / 0.6231 GB Notification: Performance of SimCode: time 1.082e-06/0.6532, allocations: 0 / 0.8679 GB, free: 3.566 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09482/0.748, allocations: 64.26 MB / 0.9307 GB, free: 3.965 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.76, allocations: 4.875 kB / 0.9307 GB, free: 3.961 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)