Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001181/0.001181, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001233/0.001233, allocations: 193.4 kB / 16.25 MB, free: 6.629 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.472/1.472, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 472.6 MB / 0.7448 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.19 kB / 0.9115 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3193, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1059/0.4252, allocations: 111.6 MB / 1.177 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03332/0.4586, allocations: 20.11 MB / 1.196 GB, free: 6.574 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005046/0.4637, allocations: 99.31 kB / 1.196 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004285/0.468, allocations: 1.104 MB / 1.198 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.4795, allocations: 3.433 MB / 1.201 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0078/0.4873, allocations: 2.872 MB / 1.204 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01098/0.4983, allocations: 7.25 MB / 1.211 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004698/0.503, allocations: 2.54 MB / 1.213 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008615/0.5117, allocations: 2.826 MB / 1.216 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004722/0.5164, allocations: 2.209 MB / 1.218 GB, free: 176 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.5177, allocations: 252 kB / 1.218 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005083/0.5228, allocations: 1.65 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.5245, allocations: 0.6967 MB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.004038/0.5285, allocations: 1.512 MB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.008747/0.5373, allocations: 4.342 MB / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5373, allocations: 0 / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5374, allocations: 0 / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.392e-05/0.5374, allocations: 4 kB / 1.226 GB, free: 7.695 MB / 0.9825 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.005995/0.5434, allocations: 3.226 MB / 1.23 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.5435, allocations: 16.03 kB / 1.23 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008606/0.5444, allocations: 324.5 kB / 1.23 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003491/0.5479, allocations: 2.155 MB / 1.232 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.115e-05/0.548, allocations: 127 kB / 1.232 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/0.5482, allocations: 171.9 kB / 1.232 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002773/0.551, allocations: 1.608 MB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.554e-05/0.5511, allocations: 3.938 kB / 1.234 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.5512, allocations: 64 kB / 1.234 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.597e-05/0.5513, allocations: 39.94 kB / 1.234 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/0.5533, allocations: 1.147 MB / 1.235 GB, free: 14.62 MB / 0.9981 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.01091/0.5642, allocations: 7.881 MB / 1.243 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008362/0.5651, allocations: 486.1 kB / 1.243 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005361/0.5656, allocations: 322.9 kB / 1.244 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007213/0.5664, allocations: 0.7524 MB / 1.244 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.5664, allocations: 43.12 kB / 1.244 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 3.096e-06/0.5664, allocations: 0 / 1.244 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002199/0.5686, allocations: 0.9881 MB / 1.245 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.5687, allocations: 59.97 kB / 1.245 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003682/0.5724, allocations: 2.316 MB / 1.248 GB, free: 1.059 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001775/0.5726, allocations: 53.64 kB / 1.248 GB, free: 1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.6507/1.223, allocations: 1.144 MB / 1.249 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000386/1.224, allocations: 216.2 kB / 1.249 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006593/1.224, allocations: 255.4 kB / 1.249 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001294/1.225, allocations: 350.7 kB / 1.25 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008339/1.225, allocations: 360.4 kB / 1.25 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/1.227, allocations: 0.7488 MB / 1.251 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/1.228, allocations: 0.982 MB / 1.252 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.811e-05/1.228, allocations: 6.125 kB / 1.252 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003533/1.232, allocations: 1.289 MB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/1.232, allocations: 13.53 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.173e-05/1.232, allocations: 12.52 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.281e-05/1.232, allocations: 13.75 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.233, allocations: 249.3 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.922e-05/1.233, allocations: 21.08 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/1.235, allocations: 244 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/1.235, allocations: 51.78 kB / 1.253 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0017/1.237, allocations: 0.7601 MB / 1.254 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009652/1.238, allocations: 0.7377 MB / 1.255 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001332/1.239, allocations: 0.9502 MB / 1.256 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.264e-05/1.239, allocations: 2.938 kB / 1.256 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002326/1.242, allocations: 1.262 MB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/1.242, allocations: 9.594 kB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/1.242, allocations: 7.875 kB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/1.242, allocations: 15.75 kB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008355/1.243, allocations: 248.2 kB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.433e-05/1.243, allocations: 20.06 kB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/1.245, allocations: 189.7 kB / 1.258 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.142e-05/1.245, allocations: 54.64 kB / 1.258 GB, free: 175.1 MB / 0.9981 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.0002863/1.245, allocations: 248.3 kB / 1.258 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005483/1.245, allocations: 235.2 kB / 1.258 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001584/1.247, allocations: 0.8859 MB / 1.259 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/1.247, allocations: 9 kB / 1.259 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.247, allocations: 6.062 kB / 1.259 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008416/1.248, allocations: 0.6866 MB / 1.26 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/1.252, allocations: 2.564 MB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.252, allocations: 5.734 kB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005761/1.253, allocations: 131.1 kB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/1.253, allocations: 6.453 kB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.057e-05/1.253, allocations: 16.72 kB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/1.253, allocations: 1.562 kB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.253, allocations: 4.688 kB / 1.262 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/1.255, allocations: 1.314 MB / 1.264 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008678/1.256, allocations: 419.4 kB / 1.264 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000406/1.256, allocations: 13.34 kB / 1.264 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/1.257, allocations: 112.7 kB / 1.264 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/1.258, allocations: 48.64 kB / 1.264 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-05/1.258, allocations: 34.84 kB / 1.264 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002635/1.26, allocations: 1.549 MB / 1.266 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.26, allocations: 2.094 kB / 1.266 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004044/1.264, allocations: 1.092 MB / 1.267 GB, free: 171.5 MB / 0.9981 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.002085/1.266, allocations: 0.7204 MB / 1.267 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00371/1.27, allocations: 1.446 MB / 1.269 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.27, allocations: 1.031 kB / 1.269 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006732/1.271, allocations: 326.7 kB / 1.269 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006482/1.277, allocations: 1.394 MB / 1.271 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007077/1.284, allocations: 4.537 MB / 1.275 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/1.286, allocations: 1.592 MB / 1.276 GB, free: 166.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002773/1.289, allocations: 0.4903 MB / 1.277 GB, free: 166.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000616/1.29, allocations: 178.7 kB / 1.277 GB, free: 166.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.684e-06/1.29, allocations: 1.062 kB / 1.277 GB, free: 166.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.07338/1.363, allocations: 46.14 MB / 1.322 GB, free: 136.4 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)