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.001318/0.001318, allocations: 99.88 kB / 16.27 MB, free: 6.414 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.001312/0.001312, allocations: 191.7 kB / 17.2 MB, free: 5.953 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.251/1.251, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002076/0.002076, allocations: 291.6 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8759/0.8759, allocations: 169.3 MB / 0.4988 GB, free: 4.508 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 93.62 kB / 0.5959 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1533, allocations: 86.98 MB / 0.6808 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.267/0.4203, allocations: 29.32 MB / 0.7095 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.4304, allocations: 6.867 MB / 0.7162 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.4318, allocations: 51.38 kB / 0.7162 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.4337, allocations: 0.6933 MB / 0.7169 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004004/0.4377, allocations: 1.447 MB / 0.7183 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003268/0.441, allocations: 1.154 MB / 0.7194 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003695/0.4447, allocations: 2.47 MB / 0.7219 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00165/0.4463, allocations: 0.7925 MB / 0.7226 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.4487, allocations: 1.011 MB / 0.7236 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.4504, allocations: 0.8142 MB / 0.7244 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003038/0.4507, allocations: 66.03 kB / 0.7245 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.4531, allocations: 0.8116 MB / 0.7253 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000484/0.4536, allocations: 274.9 kB / 0.7255 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.4547, allocations: 0.5524 MB / 0.7261 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003109/0.4578, allocations: 1.609 MB / 0.7276 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4578, allocations: 4.547 kB / 0.7276 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4578, allocations: 4 kB / 0.7276 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.517e-05/0.4579, allocations: 0 / 0.7276 GB, free: 6.617 MB / 0.4981 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.003292/0.4612, allocations: 1.565 MB / 0.7292 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.4612, allocations: 9.094 kB / 0.7292 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003429/0.4646, allocations: 0.5914 MB / 0.7298 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.466, allocations: 0.8016 MB / 0.7305 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/0.466, allocations: 52.25 kB / 0.7306 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.4662, allocations: 77.56 kB / 0.7307 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.4685, allocations: 1.107 MB / 0.7318 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4686, allocations: 1.25 kB / 0.7318 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.713e-05/0.4687, allocations: 28 kB / 0.7318 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.4687, allocations: 22.31 kB / 0.7318 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002951/0.4716, allocations: 1.009 MB / 0.7328 GB, free: 3.281 MB / 0.4981 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.005718/0.4774, allocations: 4.962 MB / 0.7376 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002894/0.4803, allocations: 0.8986 MB / 0.7385 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.4817, allocations: 496.7 kB / 0.739 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/0.483, allocations: 1.589 MB / 0.7405 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001636/0.4847, allocations: 0.5754 MB / 0.7411 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 3.176e-06/0.4847, allocations: 0 / 0.7411 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.004836/0.4895, allocations: 1.486 MB / 0.7425 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.4896, allocations: 62.19 kB / 0.7426 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.4911, allocations: 1.116 MB / 0.7437 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.313e-05/0.4912, allocations: 42.95 kB / 0.7437 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004269/0.4916, allocations: 0.547 MB / 0.7443 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.4918, allocations: 202.8 kB / 0.7445 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.4921, allocations: 163.7 kB / 0.7446 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4922, allocations: 342.4 kB / 0.7449 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.4937, allocations: 448 kB / 0.7454 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.4953, allocations: 0.7133 MB / 0.7461 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003028/0.4984, allocations: 1.126 MB / 0.7472 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.4984, allocations: 6.125 kB / 0.7472 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003698/0.5021, allocations: 1.261 MB / 0.7484 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.5021, allocations: 15.42 kB / 0.7484 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.5021, allocations: 7.062 kB / 0.7484 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.5022, allocations: 17.84 kB / 0.7484 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.5033, allocations: 259.3 kB / 0.7487 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.099e-05/0.5033, allocations: 21.08 kB / 0.7487 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.5048, allocations: 189.1 kB / 0.7489 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.505, allocations: 48.03 kB / 0.7489 GB, free: 7.16 MB / 0.5137 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.0006283/0.5056, allocations: 291.5 kB / 0.7492 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.5059, allocations: 119.1 kB / 0.7493 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003849/0.5098, allocations: 1.365 MB / 0.7507 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/0.5098, allocations: 7.281 kB / 0.7507 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5098, allocations: 0.6875 kB / 0.7507 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.5098, allocations: 3.984 kB / 0.7507 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/0.5149, allocations: 2.363 MB / 0.753 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.515, allocations: 8.188 kB / 0.753 GB, free: 4.344 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.516, allocations: 188.8 kB / 0.7532 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/0.516, allocations: 8 kB / 0.7532 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.697e-05/0.5161, allocations: 23.98 kB / 0.7532 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.508e-06/0.5161, allocations: 11.92 kB / 0.7532 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5161, allocations: 0 / 0.7532 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005065/0.5212, allocations: 1.973 MB / 0.7551 GB, free: 2.109 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005173/0.5217, allocations: 279.3 kB / 0.7554 GB, free: 1.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/0.522, allocations: 16 kB / 0.7554 GB, free: 1.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009885/0.523, allocations: 108.6 kB / 0.7555 GB, free: 1.695 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.5231, allocations: 56.42 kB / 0.7556 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.351e-05/0.5232, allocations: 31.97 kB / 0.7556 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001006/0.5242, allocations: 0.7638 MB / 0.7564 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5242, allocations: 0 / 0.7564 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001172/0.5254, allocations: 343.6 kB / 0.7567 GB, free: 0.5039 MB / 0.5137 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.001515/0.5269, allocations: 0.6715 MB / 0.7573 GB, free: 0 / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003659/0.5305, allocations: 1.185 MB / 0.7585 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5306, allocations: 0 / 0.7585 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.5322, allocations: 0.5697 MB / 0.7591 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.5343, allocations: 458.6 kB / 0.7595 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004829/0.5392, allocations: 2.41 MB / 0.7618 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006516/0.5398, allocations: 1.104 MB / 0.7629 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000424/0.5403, allocations: 115.4 kB / 0.763 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of SimCode: time 6.01e-07/0.5403, allocations: 0 / 0.763 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.02566/0.5659, allocations: 19.04 MB / 0.7816 GB, free: 7.266 MB / 0.545 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)