Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.00136/0.00136, allocations: 105.8 kB / 16.41 MB, free: 6.457 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.001348/0.001348, allocations: 189.5 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002242/0.002242, allocations: 287.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9355/0.9355, allocations: 169.2 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 99.84 kB / 0.6821 GB, free: 6.926 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4702/0.4723, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03281/0.5051, allocations: 29.32 MB / 0.7957 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01157/0.5168, allocations: 6.879 MB / 0.8024 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.5185, allocations: 47.69 kB / 0.8025 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.5206, allocations: 0.6953 MB / 0.8032 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004216/0.5249, allocations: 1.45 MB / 0.8046 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003389/0.5283, allocations: 1.154 MB / 0.8057 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003629/0.5319, allocations: 2.481 MB / 0.8081 GB, free: 9.723 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.5334, allocations: 0.7939 MB / 0.8089 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002201/0.5356, allocations: 1.035 MB / 0.8099 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.537, allocations: 0.8169 MB / 0.8107 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002606/0.5373, allocations: 71.94 kB / 0.8108 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.5395, allocations: 0.811 MB / 0.8116 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004018/0.5399, allocations: 278.9 kB / 0.8118 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008017/0.5407, allocations: 0.5553 MB / 0.8124 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00277/0.5435, allocations: 1.63 MB / 0.814 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.5435, allocations: 4 kB / 0.814 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5435, allocations: 0 / 0.814 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.684e-05/0.5435, allocations: 0 / 0.814 GB, free: 3.711 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002808/0.5464, allocations: 1.57 MB / 0.8155 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.5464, allocations: 8.031 kB / 0.8155 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003424/0.5498, allocations: 0.5884 MB / 0.8161 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.5513, allocations: 0.868 MB / 0.8169 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.5514, allocations: 58.38 kB / 0.817 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.5515, allocations: 75.94 kB / 0.8171 GB, free: 440 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.5539, allocations: 1.096 MB / 0.8181 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.5539, allocations: 4 kB / 0.8181 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.554, allocations: 39.92 kB / 0.8182 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.5541, allocations: 16 kB / 0.8182 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002964/0.557, allocations: 0.9961 MB / 0.8192 GB, free: 14.2 MB / 0.5919 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.005579/0.5626, allocations: 4.947 MB / 0.824 GB, free: 8.957 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.5655, allocations: 0.8958 MB / 0.8249 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/0.567, allocations: 497.3 kB / 0.8253 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001418/0.5684, allocations: 1.587 MB / 0.8269 GB, free: 5.633 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00168/0.5701, allocations: 0.5767 MB / 0.8275 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 2.935e-06/0.5701, allocations: 0 / 0.8275 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.004762/0.5749, allocations: 1.481 MB / 0.8289 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.5749, allocations: 59.97 kB / 0.829 GB, free: 3.488 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.5763, allocations: 1.116 MB / 0.8301 GB, free: 2.359 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.945e-05/0.5764, allocations: 41.69 kB / 0.8301 GB, free: 2.312 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004552/0.5768, allocations: 0.5434 MB / 0.8306 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.577, allocations: 213 kB / 0.8308 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/0.5773, allocations: 166.5 kB / 0.831 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5775, allocations: 337.9 kB / 0.8313 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5789, allocations: 449.6 kB / 0.8317 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00165/0.5805, allocations: 0.7212 MB / 0.8324 GB, free: 15.78 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003013/0.5836, allocations: 1.117 MB / 0.8335 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.5836, allocations: 0 / 0.8335 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003589/0.5872, allocations: 1.271 MB / 0.8348 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.5872, allocations: 8.125 kB / 0.8348 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.5873, allocations: 12 kB / 0.8348 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.848e-05/0.5873, allocations: 12 kB / 0.8348 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.5885, allocations: 271.6 kB / 0.8351 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/0.5885, allocations: 15.94 kB / 0.8351 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.5896, allocations: 186.9 kB / 0.8353 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.995e-05/0.5897, allocations: 51.97 kB / 0.8353 GB, free: 12.73 MB / 0.6075 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.0004403/0.5902, allocations: 283.8 kB / 0.8356 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.5904, allocations: 126.4 kB / 0.8357 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/0.5941, allocations: 1.358 MB / 0.837 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.5941, allocations: 12 kB / 0.837 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.5941, allocations: 0 / 0.837 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.5942, allocations: 7.969 kB / 0.837 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/0.599, allocations: 2.362 MB / 0.8393 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.599, allocations: 4 kB / 0.8394 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009956/0.6, allocations: 187.9 kB / 0.8395 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.6, allocations: 4 kB / 0.8395 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.167e-05/0.6001, allocations: 27.97 kB / 0.8396 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.198e-06/0.6001, allocations: 7.938 kB / 0.8396 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6001, allocations: 0 / 0.8396 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/0.605, allocations: 1.981 MB / 0.8415 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004174/0.6054, allocations: 279.3 kB / 0.8418 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.6056, allocations: 15.98 kB / 0.8418 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009344/0.6065, allocations: 107.9 kB / 0.8419 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.6067, allocations: 52.44 kB / 0.8419 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-05/0.6067, allocations: 35.97 kB / 0.842 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0009145/0.6077, allocations: 0.7638 MB / 0.8427 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6077, allocations: 0 / 0.8427 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009944/0.6087, allocations: 343.6 kB / 0.843 GB, free: 4.652 MB / 0.6075 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.001417/0.6101, allocations: 0.6594 MB / 0.8437 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003413/0.6135, allocations: 1.118 MB / 0.8448 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.6135, allocations: 0 / 0.8448 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.6151, allocations: 0.5697 MB / 0.8453 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.6172, allocations: 460.4 kB / 0.8458 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004951/0.6221, allocations: 2.382 MB / 0.8481 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/0.6229, allocations: 1.104 MB / 0.8492 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/0.6233, allocations: 119.4 kB / 0.8493 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of SimCode: time 5.51e-07/0.6233, allocations: 4 kB / 0.8493 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of Templates: time 0.02792/0.6512, allocations: 19.14 MB / 0.868 GB, free: 11.39 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)