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: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 113.9 kB / 17.08 MB, free: 6.016 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.001354/0.001354, allocations: 197.8 kB / 18.02 MB, free: 5.094 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.3/1.3, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7298/0.7298, allocations: 115.3 MB / 407.2 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 67.61 kB / 0.5583 GB, free: 32.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1221, allocations: 76.19 MB / 0.6327 GB, free: 4.402 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.09928/0.2214, allocations: 112.6 MB / 0.7427 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3328/0.5542, allocations: 20.24 MB / 0.7625 GB, free: 31.14 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00413/0.5584, allocations: 106.7 kB / 0.7626 GB, free: 31.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003706/0.5621, allocations: 1.278 MB / 0.7638 GB, free: 31.12 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009858/0.572, allocations: 3.692 MB / 0.7674 GB, free: 30.96 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007641/0.5797, allocations: 3.119 MB / 0.7705 GB, free: 30.87 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01096/0.5907, allocations: 7.219 MB / 0.7775 GB, free: 30.86 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004563/0.5953, allocations: 2.569 MB / 0.78 GB, free: 30.51 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006657/0.602, allocations: 2.898 MB / 0.7829 GB, free: 29.35 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003874/0.6058, allocations: 2.126 MB / 0.7849 GB, free: 28.55 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0008491/0.6067, allocations: 257.2 kB / 0.7852 GB, free: 28.55 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004422/0.6111, allocations: 1.65 MB / 0.7868 GB, free: 28.09 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009785/0.6121, allocations: 0.6897 MB / 0.7875 GB, free: 27.68 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002717/0.6149, allocations: 1.515 MB / 0.789 GB, free: 26.74 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006536/0.6214, allocations: 4.39 MB / 0.7932 GB, free: 24.54 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.6214, allocations: 7.922 kB / 0.7932 GB, free: 24.53 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6214, allocations: 0 / 0.7932 GB, free: 24.53 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001378/0.6216, allocations: 0 / 0.7932 GB, free: 24.53 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.004953/0.6265, allocations: 3.229 MB / 0.7964 GB, free: 22.18 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.6266, allocations: 8.719 kB / 0.7964 GB, free: 22.18 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006931/0.6273, allocations: 327.8 kB / 0.7967 GB, free: 22.02 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.63, allocations: 2.206 MB / 0.7989 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.634e-05/0.6301, allocations: 121.4 kB / 0.799 GB, free: 20.37 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.6303, allocations: 170.3 kB / 0.7992 GB, free: 20.32 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.6323, allocations: 1.614 MB / 0.8007 GB, free: 19.31 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.231e-05/0.6324, allocations: 3.906 kB / 0.8007 GB, free: 19.31 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.6325, allocations: 64.62 kB / 0.8008 GB, free: 19.26 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.6325, allocations: 38.28 kB / 0.8008 GB, free: 19.26 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.6341, allocations: 1.148 MB / 0.802 GB, free: 18.68 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.007676/0.6418, allocations: 7.918 MB / 0.8097 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006326/0.6424, allocations: 475.1 kB / 0.8101 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.6428, allocations: 328.5 kB / 0.8105 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004073/0.6433, allocations: 0.7565 MB / 0.8112 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.6433, allocations: 52.42 kB / 0.8112 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.274e-06/0.6433, allocations: 0 / 0.8112 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.00166/0.645, allocations: 0.9841 MB / 0.8122 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.645, allocations: 58.91 kB / 0.8123 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/0.6471, allocations: 2.338 MB / 0.8145 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.909e-05/0.6472, allocations: 45.7 kB / 0.8146 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006065/0.6478, allocations: 1.155 MB / 0.8157 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/0.648, allocations: 216.3 kB / 0.8159 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.6482, allocations: 254.6 kB / 0.8162 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.041e-05/0.6483, allocations: 349.9 kB / 0.8165 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004939/0.6488, allocations: 361.9 kB / 0.8168 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006633/0.6495, allocations: 0.7439 MB / 0.8176 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.6505, allocations: 0.9772 MB / 0.8185 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.6505, allocations: 0 / 0.8185 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001708/0.6522, allocations: 1.299 MB / 0.8198 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.6523, allocations: 8 kB / 0.8198 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.6523, allocations: 8 kB / 0.8198 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.6523, allocations: 16 kB / 0.8198 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008412/0.6531, allocations: 248.2 kB / 0.8201 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.6532, allocations: 27.92 kB / 0.8201 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.6544, allocations: 162.3 kB / 0.8202 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.041e-05/0.6545, allocations: 51.98 kB / 0.8203 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009579/0.6555, allocations: 0.7641 MB / 0.821 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006062/0.6561, allocations: 0.731 MB / 0.8217 GB, free: 8 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001233/0.6573, allocations: 0.96 MB / 0.8227 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.473e-06/0.6573, allocations: 7.984 kB / 0.8227 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001892/0.6592, allocations: 1.254 MB / 0.8239 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.6593, allocations: 15.38 kB / 0.8239 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.6593, allocations: 8 kB / 0.8239 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.6593, allocations: 16 kB / 0.824 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000824/0.6601, allocations: 251.6 kB / 0.8242 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.6601, allocations: 23.92 kB / 0.8242 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.6614, allocations: 119.2 kB / 0.8243 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/0.6615, allocations: 47.98 kB / 0.8244 GB, free: 13.2 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.0002585/0.6618, allocations: 259.8 kB / 0.8246 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003174/0.6621, allocations: 237 kB / 0.8249 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.6636, allocations: 0.8819 MB / 0.8257 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.6636, allocations: 8 kB / 0.8257 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.6636, allocations: 0 / 0.8257 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000925/0.6646, allocations: 0.6853 MB / 0.8264 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.6679, allocations: 2.585 MB / 0.8289 GB, free: 8.438 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.6679, allocations: 0 / 0.8289 GB, free: 8.438 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004895/0.6684, allocations: 127.9 kB / 0.829 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.6684, allocations: 0 / 0.829 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.626e-05/0.6685, allocations: 16 kB / 0.8291 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.6685, allocations: 4 kB / 0.8291 GB, free: 8.293 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6685, allocations: 3.938 kB / 0.8291 GB, free: 8.289 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.6703, allocations: 1.317 MB / 0.8303 GB, free: 6.941 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005885/0.6709, allocations: 417.9 kB / 0.8307 GB, free: 6.512 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/0.6711, allocations: 12 kB / 0.8308 GB, free: 6.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008795/0.672, allocations: 51.92 kB / 0.8308 GB, free: 6.449 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-05/0.6721, allocations: 40.5 kB / 0.8308 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.6722, allocations: 35.92 kB / 0.8309 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00192/0.6741, allocations: 1.573 MB / 0.8324 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6741, allocations: 0 / 0.8324 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002392/0.6765, allocations: 1.107 MB / 0.8335 GB, free: 3.688 MB / 0.5919 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.001472/0.678, allocations: 0.7499 MB / 0.8342 GB, free: 3.105 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002208/0.6802, allocations: 1.35 MB / 0.8355 GB, free: 1.758 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6802, allocations: 1.625 kB / 0.8355 GB, free: 1.758 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000481/0.6807, allocations: 331 kB / 0.8359 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004662/0.6854, allocations: 1.388 MB / 0.8372 GB, free: 96 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005221/0.6906, allocations: 3.726 MB / 0.8409 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.6917, allocations: 1.59 MB / 0.8424 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.6922, allocations: 183.4 kB / 0.8426 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.6922, allocations: 3.938 kB / 0.8426 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of Templates: time 0.0566/0.7488, allocations: 40.16 MB / 0.8818 GB, free: 2.715 MB / 0.6387 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)