Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001066/0.001066, allocations: 103.9 kB / 16.35 MB, free: 5.879 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.001033/0.001033, allocations: 191 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.775/1.775, allocations: 292.3 MB / 0.5496 GB, free: 17.66 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 75.89 kB / 0.6729 GB, free: 5.871 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2019, allocations: 114.6 MB / 0.7848 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.3561/0.558, allocations: 29.35 MB / 0.8134 GB, free: 31.62 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.009106/0.5671, allocations: 6.737 MB / 0.82 GB, free: 26.87 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.5684, allocations: 50.88 kB / 0.8201 GB, free: 26.85 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.57, allocations: 0.6852 MB / 0.8207 GB, free: 26.52 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.003762/0.5738, allocations: 1.432 MB / 0.8221 GB, free: 25.73 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003381/0.5772, allocations: 1.151 MB / 0.8233 GB, free: 25.17 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.003484/0.5807, allocations: 2.451 MB / 0.8256 GB, free: 24.07 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001787/0.5825, allocations: 0.8044 MB / 0.8264 GB, free: 23.77 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002688/0.5852, allocations: 1.038 MB / 0.8274 GB, free: 23.31 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.5869, allocations: 0.8082 MB / 0.8282 GB, free: 22.98 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003596/0.5873, allocations: 70.59 kB / 0.8283 GB, free: 22.98 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002616/0.5899, allocations: 0.8264 MB / 0.8291 GB, free: 22.66 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004928/0.5904, allocations: 274.3 kB / 0.8294 GB, free: 22.52 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.5916, allocations: 0.5561 MB / 0.8299 GB, free: 22.17 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003842/0.5955, allocations: 1.643 MB / 0.8315 GB, free: 21.54 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.5955, allocations: 1.688 kB / 0.8315 GB, free: 21.54 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5955, allocations: 4 kB / 0.8315 GB, free: 21.53 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.004e-05/0.5956, allocations: 0 / 0.8315 GB, free: 21.53 MB / 0.6544 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.003663/0.5993, allocations: 1.581 MB / 0.8331 GB, free: 20.47 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.5993, allocations: 10.8 kB / 0.8331 GB, free: 20.47 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003966/0.6033, allocations: 0.5929 MB / 0.8337 GB, free: 20.36 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.6051, allocations: 0.8218 MB / 0.8345 GB, free: 19.84 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.6052, allocations: 53.88 kB / 0.8345 GB, free: 19.82 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.6054, allocations: 78.8 kB / 0.8346 GB, free: 19.79 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002754/0.6081, allocations: 1.101 MB / 0.8357 GB, free: 19.27 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.6082, allocations: 5.469 kB / 0.8357 GB, free: 19.27 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.006e-05/0.6082, allocations: 28.95 kB / 0.8357 GB, free: 19.25 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.6083, allocations: 19.53 kB / 0.8357 GB, free: 19.25 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003232/0.6115, allocations: 1.001 MB / 0.8367 GB, free: 18.98 MB / 0.6544 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.006338/0.6179, allocations: 4.944 MB / 0.8415 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00304/0.6209, allocations: 0.9064 MB / 0.8424 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.6224, allocations: 493 kB / 0.8429 GB, free: 14.75 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00116/0.6236, allocations: 1.584 MB / 0.8444 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001745/0.6253, allocations: 0.5801 MB / 0.845 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=61): time 3.787e-06/0.6254, allocations: 2 kB / 0.845 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=61): time 0.005065/0.6304, allocations: 1.486 MB / 0.8464 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.6305, allocations: 66.27 kB / 0.8465 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.6321, allocations: 1.124 MB / 0.8476 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.6322, allocations: 40 kB / 0.8476 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.6326, allocations: 0.5538 MB / 0.8482 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.6328, allocations: 204.4 kB / 0.8484 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.633, allocations: 172.1 kB / 0.8485 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.315e-05/0.6331, allocations: 334 kB / 0.8489 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/0.6345, allocations: 454.9 kB / 0.8493 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.6361, allocations: 0.7322 MB / 0.85 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002845/0.639, allocations: 1.121 MB / 0.8511 GB, free: 9.641 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.639, allocations: 1.938 kB / 0.8511 GB, free: 9.641 MB / 0.6544 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003624/0.6426, allocations: 1.274 MB / 0.8523 GB, free: 9.215 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.6427, allocations: 12.34 kB / 0.8524 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.6427, allocations: 9.281 kB / 0.8524 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.473e-05/0.6428, allocations: 14.47 kB / 0.8524 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.644, allocations: 265.3 kB / 0.8526 GB, free: 9.188 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.34e-05/0.644, allocations: 18.14 kB / 0.8527 GB, free: 9.184 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.6455, allocations: 184.5 kB / 0.8528 GB, free: 9.117 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.6456, allocations: 47.47 kB / 0.8529 GB, free: 9.109 MB / 0.6544 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.0005345/0.6461, allocations: 293.2 kB / 0.8532 GB, free: 8.914 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.6464, allocations: 127.7 kB / 0.8533 GB, free: 8.844 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/0.65, allocations: 1.36 MB / 0.8546 GB, free: 8.254 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.35e-05/0.6501, allocations: 11.77 kB / 0.8546 GB, free: 8.25 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.6501, allocations: 0 / 0.8546 GB, free: 8.25 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.6501, allocations: 5.203 kB / 0.8546 GB, free: 8.246 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004849/0.655, allocations: 2.377 MB / 0.8569 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.655, allocations: 1.188 kB / 0.8569 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.656, allocations: 194.6 kB / 0.8571 GB, free: 6.648 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.445e-05/0.6561, allocations: 5.156 kB / 0.8571 GB, free: 6.648 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.215e-05/0.6561, allocations: 25.62 kB / 0.8572 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.6561, allocations: 3.469 kB / 0.8572 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.6562, allocations: 2.562 kB / 0.8572 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00491/0.6611, allocations: 1.984 MB / 0.8591 GB, free: 5.539 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006157/0.6617, allocations: 274 kB / 0.8594 GB, free: 5.301 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.6619, allocations: 19.33 kB / 0.8594 GB, free: 5.289 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009544/0.6628, allocations: 110.3 kB / 0.8595 GB, free: 5.238 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.663, allocations: 51.56 kB / 0.8595 GB, free: 5.211 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.383e-05/0.6631, allocations: 34.56 kB / 0.8596 GB, free: 5.199 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009725/0.6641, allocations: 0.7694 MB / 0.8603 GB, free: 4.797 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6641, allocations: 1.5 kB / 0.8603 GB, free: 4.797 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001245/0.6653, allocations: 353.6 kB / 0.8607 GB, free: 4.707 MB / 0.6544 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.001494/0.6668, allocations: 0.6556 MB / 0.8613 GB, free: 4.457 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003286/0.6701, allocations: 1.115 MB / 0.8624 GB, free: 3.961 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.6701, allocations: 3.938 kB / 0.8624 GB, free: 3.957 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.6717, allocations: 0.5724 MB / 0.8629 GB, free: 3.695 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.6739, allocations: 472.8 kB / 0.8634 GB, free: 3.465 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00446/0.6783, allocations: 2.348 MB / 0.8657 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.6789, allocations: 1.106 MB / 0.8668 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009791/0.6799, allocations: 247.7 kB / 0.867 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.6802, allocations: 109.2 kB / 0.8671 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of SimCode: time 5.61e-07/0.6802, allocations: 0 / 0.8671 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of Templates: time 0.03406/0.7142, allocations: 20.36 MB / 0.887 GB, free: 1.191 MB / 0.67 GB make -j1 -f Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)