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.001784/0.001784, allocations: 107.2 kB / 16.41 MB, free: 6.488 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.002028/0.002028, allocations: 185.2 kB / 17.34 MB, free: 5.73 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.506/1.506, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0026/0.0026, allocations: 288.2 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 1.027/1.027, allocations: 169.3 MB / 0.499 GB, free: 4.395 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002826/0.002826, allocations: 92.23 kB / 0.6822 GB, free: 6.848 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4521/0.4549, allocations: 86.97 MB / 0.7671 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03284/0.4878, allocations: 29.39 MB / 0.7958 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01139/0.4992, allocations: 6.891 MB / 0.8025 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.5004, allocations: 47.69 kB / 0.8026 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.5021, allocations: 0.6991 MB / 0.8033 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003733/0.5058, allocations: 1.524 MB / 0.8048 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002852/0.5087, allocations: 1.153 MB / 0.8059 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003269/0.512, allocations: 2.477 MB / 0.8083 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.513, allocations: 0.6887 MB / 0.809 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.5148, allocations: 1.043 MB / 0.81 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.5158, allocations: 0.8092 MB / 0.8108 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.5159, allocations: 71.94 kB / 0.8109 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.5177, allocations: 0.8265 MB / 0.8117 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002972/0.518, allocations: 274.8 kB / 0.8119 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005702/0.5186, allocations: 0.5476 MB / 0.8125 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.5209, allocations: 1.648 MB / 0.8141 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.5209, allocations: 4 kB / 0.8141 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5209, allocations: 0 / 0.8141 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.316e-05/0.521, allocations: 0 / 0.8141 GB, free: 3.613 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.003014/0.524, allocations: 1.619 MB / 0.8157 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.524, allocations: 8.031 kB / 0.8157 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003699/0.5277, allocations: 0.597 MB / 0.8162 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.5294, allocations: 0.8808 MB / 0.8171 GB, free: 400 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.058e-05/0.5294, allocations: 50.38 kB / 0.8172 GB, free: 352 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.5296, allocations: 79.94 kB / 0.8172 GB, free: 272 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.5322, allocations: 1.104 MB / 0.8183 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.5322, allocations: 4 kB / 0.8183 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.5323, allocations: 28 kB / 0.8183 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.5324, allocations: 20 kB / 0.8184 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003243/0.5356, allocations: 1.004 MB / 0.8193 GB, free: 14.02 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.006421/0.542, allocations: 4.944 MB / 0.8242 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003067/0.5451, allocations: 0.8762 MB / 0.825 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.5466, allocations: 458.2 kB / 0.8255 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001521/0.5481, allocations: 1.588 MB / 0.827 GB, free: 5.52 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001788/0.5499, allocations: 0.5806 MB / 0.8276 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 2.995e-06/0.5499, allocations: 0 / 0.8276 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.005091/0.555, allocations: 1.486 MB / 0.829 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.5551, allocations: 63.91 kB / 0.8291 GB, free: 3.363 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.5565, allocations: 1.12 MB / 0.8302 GB, free: 2.23 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.754e-05/0.5566, allocations: 37.7 kB / 0.8302 GB, free: 2.188 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000502/0.5571, allocations: 0.552 MB / 0.8308 GB, free: 1.633 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.5573, allocations: 210.2 kB / 0.831 GB, free: 1.426 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002704/0.5576, allocations: 170.6 kB / 0.8311 GB, free: 1.254 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.5577, allocations: 337.9 kB / 0.8314 GB, free: 0.918 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.5593, allocations: 445.6 kB / 0.8319 GB, free: 492 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/0.5611, allocations: 0.7133 MB / 0.8326 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/0.5645, allocations: 1.128 MB / 0.8337 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.5645, allocations: 4 kB / 0.8337 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003927/0.5684, allocations: 1.283 MB / 0.8349 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.5685, allocations: 8 kB / 0.8349 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.5685, allocations: 8 kB / 0.8349 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.5685, allocations: 12 kB / 0.8349 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.5698, allocations: 271.9 kB / 0.8352 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.467e-05/0.5698, allocations: 23.91 kB / 0.8352 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.5711, allocations: 175.2 kB / 0.8354 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.5712, allocations: 47.97 kB / 0.8354 GB, free: 12.6 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.000525/0.5718, allocations: 295.8 kB / 0.8357 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002135/0.572, allocations: 131.1 kB / 0.8358 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004023/0.576, allocations: 1.363 MB / 0.8372 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.576, allocations: 8 kB / 0.8372 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.576, allocations: 0 / 0.8372 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.576, allocations: 3.984 kB / 0.8372 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005403/0.5814, allocations: 2.37 MB / 0.8395 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.5814, allocations: 4.031 kB / 0.8395 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.5825, allocations: 187.7 kB / 0.8397 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.5825, allocations: 4 kB / 0.8397 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.77e-05/0.5826, allocations: 27.97 kB / 0.8397 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.33e-05/0.5826, allocations: 11.94 kB / 0.8397 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.5826, allocations: 0 / 0.8397 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005456/0.5881, allocations: 1.986 MB / 0.8417 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005545/0.5886, allocations: 284 kB / 0.8419 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.5888, allocations: 16 kB / 0.842 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009812/0.5898, allocations: 111.8 kB / 0.8421 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.5899, allocations: 52.42 kB / 0.8421 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.896e-05/0.59, allocations: 43.91 kB / 0.8422 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001038/0.591, allocations: 0.7599 MB / 0.8429 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8.1e-08/0.591, allocations: 0 / 0.8429 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001115/0.5921, allocations: 347.3 kB / 0.8432 GB, free: 4.473 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.002079/0.5942, allocations: 0.6627 MB / 0.8439 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003569/0.5978, allocations: 1.083 MB / 0.8449 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5978, allocations: 3.938 kB / 0.8449 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00175/0.5995, allocations: 0.5423 MB / 0.8455 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.6018, allocations: 455.7 kB / 0.8459 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005341/0.6071, allocations: 2.358 MB / 0.8482 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007903/0.6079, allocations: 1.111 MB / 0.8493 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001329/0.6092, allocations: 248.5 kB / 0.8495 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/0.6096, allocations: 107.4 kB / 0.8496 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of SimCode: time 1.303e-06/0.6096, allocations: 0 / 0.8496 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of Templates: time 0.03733/0.6469, allocations: 20.12 MB / 0.8693 GB, free: 10.21 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)