Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001073/0.001073, allocations: 192.3 kB / 16.14 MB, free: 6.688 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.412/1.412, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.79/2.79, allocations: 472.6 MB / 0.7447 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 62.89 kB / 0.9113 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4216, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.0333/0.4549, allocations: 29.17 MB / 1.096 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01152/0.4665, allocations: 6.917 MB / 1.103 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.4684, allocations: 43.69 kB / 1.103 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001997/0.4705, allocations: 0.5949 MB / 1.103 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004814/0.4753, allocations: 1.349 MB / 1.105 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003544/0.4788, allocations: 1.032 MB / 1.106 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004826/0.4837, allocations: 3.23 MB / 1.109 GB, free: 432 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.4851, allocations: 0.731 MB / 1.11 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.4875, allocations: 0.9373 MB / 1.11 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.4888, allocations: 0.8208 MB / 1.111 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.4889, allocations: 47.94 kB / 1.111 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002262/0.4912, allocations: 0.7677 MB / 1.112 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000301/0.4915, allocations: 254.9 kB / 1.112 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006224/0.4921, allocations: 0.5397 MB / 1.113 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.4949, allocations: 1.573 MB / 1.114 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4949, allocations: 0 / 1.114 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of FrontEnd: time 9.41e-07/0.4949, allocations: 0 / 1.114 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.495, allocations: 0 / 1.114 GB, free: 10.72 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002878/0.4978, allocations: 1.562 MB / 1.116 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.4979, allocations: 8.031 kB / 1.116 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003595/0.5015, allocations: 0.5845 MB / 1.116 GB, free: 8.512 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.5028, allocations: 0.8056 MB / 1.117 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.565e-05/0.5029, allocations: 62.36 kB / 1.117 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.503, allocations: 71.94 kB / 1.117 GB, free: 7.52 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/0.5057, allocations: 1.099 MB / 1.118 GB, free: 6.344 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.5057, allocations: 11.94 kB / 1.118 GB, free: 6.332 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.552e-05/0.5058, allocations: 28 kB / 1.119 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.5058, allocations: 23.94 kB / 1.119 GB, free: 6.281 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/0.5088, allocations: 1.004 MB / 1.12 GB, free: 5.273 MB / 0.8731 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.006564/0.5154, allocations: 4.939 MB / 1.124 GB, free: 44 kB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/0.5186, allocations: 0.899 MB / 1.125 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.52, allocations: 490.1 kB / 1.126 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001666/0.5217, allocations: 1.584 MB / 1.127 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001834/0.5235, allocations: 0.5806 MB / 1.128 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=61): time 3.367e-06/0.5235, allocations: 0 / 1.128 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of matching and sorting (n=61): time 0.005123/0.5287, allocations: 1.485 MB / 1.129 GB, free: 10.63 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.5288, allocations: 59.95 kB / 1.129 GB, free: 10.56 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001806/0.5306, allocations: 1.12 MB / 1.13 GB, free: 9.43 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.5307, allocations: 45.64 kB / 1.13 GB, free: 9.379 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005445/0.5312, allocations: 0.5434 MB / 1.131 GB, free: 8.828 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/0.5315, allocations: 213 kB / 1.131 GB, free: 8.617 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002986/0.5318, allocations: 162.5 kB / 1.131 GB, free: 8.453 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.532, allocations: 334 kB / 1.132 GB, free: 8.121 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/0.5335, allocations: 449.6 kB / 1.132 GB, free: 7.684 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.5352, allocations: 0.7164 MB / 1.133 GB, free: 6.855 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003112/0.5384, allocations: 1.117 MB / 1.134 GB, free: 5.633 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.5384, allocations: 4 kB / 1.134 GB, free: 5.629 MB / 0.8887 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003845/0.5422, allocations: 1.278 MB / 1.135 GB, free: 4.344 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.5423, allocations: 8 kB / 1.135 GB, free: 4.336 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.5423, allocations: 8 kB / 1.135 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/0.5423, allocations: 12.78 kB / 1.135 GB, free: 4.316 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.5436, allocations: 271.5 kB / 1.135 GB, free: 4.051 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.712e-05/0.5436, allocations: 20.02 kB / 1.135 GB, free: 4.031 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.5452, allocations: 194.9 kB / 1.136 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.5453, allocations: 43.98 kB / 1.136 GB, free: 3.797 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * 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.000654/0.546, allocations: 295.7 kB / 1.136 GB, free: 3.496 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003753/0.5464, allocations: 126.4 kB / 1.136 GB, free: 3.371 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00405/0.5504, allocations: 1.367 MB / 1.137 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.714e-05/0.5505, allocations: 11.98 kB / 1.137 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/0.5505, allocations: 0 / 1.137 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.5505, allocations: 3.984 kB / 1.137 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005603/0.5561, allocations: 2.362 MB / 1.14 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5561, allocations: 4 kB / 1.14 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5572, allocations: 183.9 kB / 1.14 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.418e-05/0.5572, allocations: 4 kB / 1.14 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.062e-05/0.5573, allocations: 31.97 kB / 1.14 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/0.5573, allocations: 4 kB / 1.14 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5573, allocations: 0 / 1.14 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005327/0.5627, allocations: 1.973 MB / 1.142 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006487/0.5633, allocations: 279.3 kB / 1.142 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/0.5636, allocations: 12 kB / 1.142 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.5648, allocations: 123.8 kB / 1.142 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.5649, allocations: 52.44 kB / 1.142 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-05/0.565, allocations: 35.97 kB / 1.142 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001362/0.5664, allocations: 0.7677 MB / 1.143 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.295e-06/0.5664, allocations: 0 / 1.143 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001492/0.5679, allocations: 347.5 kB / 1.143 GB, free: 11.68 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * 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.001882/0.5698, allocations: 0.6472 MB / 1.144 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003607/0.5734, allocations: 1.118 MB / 1.145 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.5734, allocations: 0 / 1.145 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001745/0.5752, allocations: 0.5775 MB / 1.146 GB, free: 9.496 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.5776, allocations: 417 kB / 1.146 GB, free: 9.09 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005855/0.5835, allocations: 2.738 MB / 1.149 GB, free: 6.305 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009625/0.5845, allocations: 1.104 MB / 1.15 GB, free: 5.172 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001329/0.5858, allocations: 244.6 kB / 1.15 GB, free: 4.93 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004277/0.5862, allocations: 107.4 kB / 1.15 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of SimCode: time 1.032e-06/0.5863, allocations: 0 / 1.15 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of Templates: time 0.03862/0.6249, allocations: 19.06 MB / 1.169 GB, free: 2.016 MB / 0.92 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)