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.006787/0.006787, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001532/0.001532, allocations: 202 kB / 16.68 MB, free: 5.965 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00201/0.00201, allocations: 278.1 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.942/0.942, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 95.86 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1821, allocations: 86.98 MB / 0.7664 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.3645/0.5467, allocations: 29.32 MB / 0.7951 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01082/0.5575, allocations: 6.873 MB / 0.8018 GB, free: 9.422 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.5596, allocations: 46.75 kB / 0.8018 GB, free: 9.402 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.5614, allocations: 0.6972 MB / 0.8025 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004173/0.5656, allocations: 1.453 MB / 0.8039 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003097/0.5687, allocations: 1.142 MB / 0.805 GB, free: 7.707 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003562/0.5723, allocations: 2.477 MB / 0.8074 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.5736, allocations: 0.8046 MB / 0.8082 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002038/0.5756, allocations: 1.017 MB / 0.8092 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.5769, allocations: 0.8074 MB / 0.81 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.5771, allocations: 66.34 kB / 0.8101 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002254/0.5793, allocations: 0.8246 MB / 0.8109 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.5797, allocations: 273.1 kB / 0.8111 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000615/0.5803, allocations: 0.5535 MB / 0.8117 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.5831, allocations: 1.64 MB / 0.8133 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5831, allocations: 0.6562 kB / 0.8133 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5831, allocations: 3.938 kB / 0.8133 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.571e-05/0.5831, allocations: 1.125 kB / 0.8133 GB, free: 4.07 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.002789/0.5859, allocations: 1.615 MB / 0.8149 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.586, allocations: 10.28 kB / 0.8149 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003386/0.5894, allocations: 0.5896 MB / 0.8155 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/0.5909, allocations: 0.8805 MB / 0.8163 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.957e-05/0.591, allocations: 58.03 kB / 0.8164 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.5911, allocations: 78.48 kB / 0.8164 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.5936, allocations: 1.092 MB / 0.8175 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.5937, allocations: 7.875 kB / 0.8175 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.023e-05/0.5937, allocations: 37.19 kB / 0.8175 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.5938, allocations: 17.56 kB / 0.8176 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002984/0.5968, allocations: 1.01 MB / 0.8186 GB, free: 1.445 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.006173/0.6029, allocations: 4.941 MB / 0.8234 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.6057, allocations: 0.9021 MB / 0.8243 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.6072, allocations: 485.8 kB / 0.8247 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001236/0.6084, allocations: 1.593 MB / 0.8263 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001586/0.61, allocations: 0.5737 MB / 0.8268 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 3.727e-06/0.61, allocations: 0 / 0.8268 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.004726/0.6147, allocations: 1.503 MB / 0.8283 GB, free: 9.816 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.6148, allocations: 58.66 kB / 0.8284 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.6162, allocations: 1.109 MB / 0.8294 GB, free: 9.184 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.012e-05/0.6163, allocations: 38.92 kB / 0.8295 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004054/0.6167, allocations: 0.5559 MB / 0.83 GB, free: 8.652 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.6169, allocations: 222.3 kB / 0.8302 GB, free: 8.461 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.6172, allocations: 164.8 kB / 0.8304 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.6173, allocations: 337.8 kB / 0.8307 GB, free: 8.035 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.6187, allocations: 447.1 kB / 0.8311 GB, free: 7.828 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.6203, allocations: 0.7107 MB / 0.8318 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0029/0.6232, allocations: 1.125 MB / 0.8329 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.6232, allocations: 6.656 kB / 0.8329 GB, free: 6.535 MB / 0.5919 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003598/0.6268, allocations: 1.278 MB / 0.8342 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.6269, allocations: 8.188 kB / 0.8342 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.6269, allocations: 11.91 kB / 0.8342 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.6269, allocations: 11.75 kB / 0.8342 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.6281, allocations: 265.1 kB / 0.8345 GB, free: 5.824 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.93e-05/0.6281, allocations: 20.62 kB / 0.8345 GB, free: 5.816 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.6294, allocations: 185.2 kB / 0.8347 GB, free: 5.711 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.6295, allocations: 49.53 kB / 0.8347 GB, free: 5.695 MB / 0.5919 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.0005063/0.63, allocations: 294.5 kB / 0.835 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.6302, allocations: 127.1 kB / 0.8351 GB, free: 5.414 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003709/0.6339, allocations: 1.359 MB / 0.8364 GB, free: 4.695 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.589e-05/0.634, allocations: 15.11 kB / 0.8365 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.634, allocations: 0 / 0.8365 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.634, allocations: 5.234 kB / 0.8365 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004949/0.6389, allocations: 2.364 MB / 0.8388 GB, free: 3.172 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.639, allocations: 5.344 kB / 0.8388 GB, free: 3.168 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.64, allocations: 186.3 kB / 0.839 GB, free: 3.105 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.64, allocations: 4.406 kB / 0.839 GB, free: 3.105 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.716e-05/0.6401, allocations: 30.03 kB / 0.839 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/0.6401, allocations: 7.469 kB / 0.839 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6401, allocations: 2.906 kB / 0.839 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005408/0.6455, allocations: 1.977 MB / 0.8409 GB, free: 2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007473/0.6463, allocations: 278.5 kB / 0.8412 GB, free: 1.758 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003128/0.6466, allocations: 25.36 kB / 0.8412 GB, free: 1.738 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009795/0.6476, allocations: 109.9 kB / 0.8413 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.6478, allocations: 52.59 kB / 0.8414 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.624e-05/0.6479, allocations: 32.59 kB / 0.8414 GB, free: 1.645 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001421/0.6493, allocations: 0.7632 MB / 0.8422 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.1e-07/0.6493, allocations: 1.656 kB / 0.8422 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001642/0.651, allocations: 346.5 kB / 0.8425 GB, free: 1.16 MB / 0.5919 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.001759/0.6528, allocations: 0.6682 MB / 0.8431 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003363/0.6561, allocations: 1.118 MB / 0.8442 GB, free: 340 kB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.6561, allocations: 1.062 kB / 0.8442 GB, free: 340 kB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.6578, allocations: 0.575 MB / 0.8448 GB, free: 72 kB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.6601, allocations: 459.3 kB / 0.8452 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/0.6647, allocations: 2.365 MB / 0.8475 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005946/0.6653, allocations: 1.108 MB / 0.8486 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0009312/0.6662, allocations: 243.1 kB / 0.8489 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.6665, allocations: 108.9 kB / 0.849 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of SimCode: time 7.82e-07/0.6665, allocations: 0 / 0.849 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of Templates: time 0.0342/0.7008, allocations: 20.03 MB / 0.8685 GB, free: 9.98 MB / 0.6231 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)