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.0008208/0.0008208, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001054/0.001054, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001755/0.001755, allocations: 271 kB / 291.3 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9505/0.9505, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.000398, allocations: 20.44 kB / 0.598 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1403, allocations: 88.54 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02524/0.1656, allocations: 26.91 MB / 0.7108 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009136/0.1748, allocations: 6.471 MB / 0.7171 GB, free: 14 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008128/0.1756, allocations: 39.69 kB / 0.7171 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.1769, allocations: 0.548 MB / 0.7176 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002559/0.1794, allocations: 1.193 MB / 0.7188 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00219/0.1816, allocations: 0.9453 MB / 0.7197 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002948/0.1846, allocations: 2.765 MB / 0.7224 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009268/0.1855, allocations: 0.6436 MB / 0.7231 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.187, allocations: 0.8945 MB / 0.7239 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009118/0.1879, allocations: 0.7547 MB / 0.7247 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.053e-05/0.188, allocations: 36 kB / 0.7247 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.1892, allocations: 498.9 kB / 0.7252 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002476/0.1895, allocations: 243 kB / 0.7254 GB, free: 5.418 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.1897, allocations: 229 kB / 0.7256 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.1908, allocations: 1.025 MB / 0.7266 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1908, allocations: 0 / 0.7266 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1908, allocations: 0 / 0.7266 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.479e-05/0.1908, allocations: 0 / 0.7266 GB, free: 4.16 MB / 0.5137 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.002185/0.193, allocations: 1.376 MB / 0.728 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.193, allocations: 11.97 kB / 0.728 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003103/0.1961, allocations: 0.6345 MB / 0.7286 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.1973, allocations: 0.7545 MB / 0.7293 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.492e-05/0.1973, allocations: 58 kB / 0.7294 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.1975, allocations: 72 kB / 0.7295 GB, free: 1.145 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.1997, allocations: 1.115 MB / 0.7306 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1997, allocations: 0 / 0.7306 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.1998, allocations: 28 kB / 0.7306 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.1998, allocations: 23.94 kB / 0.7306 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002809/0.2027, allocations: 1.023 MB / 0.7316 GB, free: 14.88 MB / 0.5294 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.005206/0.2079, allocations: 4.967 MB / 0.7365 GB, free: 9.625 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.2106, allocations: 0.9619 MB / 0.7374 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.2119, allocations: 0.4904 MB / 0.7379 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00129/0.2132, allocations: 1.592 MB / 0.7394 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/0.2147, allocations: 0.5924 MB / 0.74 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.565e-06/0.2147, allocations: 0 / 0.74 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004289/0.219, allocations: 1.516 MB / 0.7415 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.2191, allocations: 59.97 kB / 0.7415 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.2203, allocations: 1.112 MB / 0.7426 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.013e-05/0.2204, allocations: 37.7 kB / 0.7427 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.2208, allocations: 0.5473 MB / 0.7432 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.221, allocations: 205.1 kB / 0.7434 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/0.2211, allocations: 16 kB / 0.7434 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2212, allocations: 338 kB / 0.7437 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.2225, allocations: 461.6 kB / 0.7442 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.224, allocations: 0.7245 MB / 0.7449 GB, free: 464 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.2254, allocations: 497.8 kB / 0.7454 GB, free: 15.96 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.2254, allocations: 4 kB / 0.7454 GB, free: 15.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003166/0.2286, allocations: 1.278 MB / 0.7466 GB, free: 14.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.2286, allocations: 17.64 kB / 0.7466 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.2287, allocations: 11.98 kB / 0.7466 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.2287, allocations: 16 kB / 0.7467 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.2299, allocations: 283.5 kB / 0.7469 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/0.2299, allocations: 12 kB / 0.7469 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.231, allocations: 202.9 kB / 0.7471 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.059e-05/0.2311, allocations: 51.97 kB / 0.7472 GB, free: 14.1 MB / 0.545 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 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004176/0.2315, allocations: 300.3 kB / 0.7475 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.2317, allocations: 114.6 kB / 0.7476 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003522/0.2352, allocations: 1.385 MB / 0.7489 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.2352, allocations: 12 kB / 0.7489 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2352, allocations: 0 / 0.7489 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.2353, allocations: 7.984 kB / 0.7489 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004556/0.2398, allocations: 2.382 MB / 0.7513 GB, free: 9.812 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.2398, allocations: 4 kB / 0.7513 GB, free: 9.809 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009659/0.2408, allocations: 191.9 kB / 0.7515 GB, free: 9.621 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.2408, allocations: 8 kB / 0.7515 GB, free: 9.613 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.099e-05/0.2409, allocations: 23.97 kB / 0.7515 GB, free: 9.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.2409, allocations: 4 kB / 0.7515 GB, free: 9.586 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.2409, allocations: 4.078 kB / 0.7515 GB, free: 9.582 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004599/0.2455, allocations: 2.004 MB / 0.7535 GB, free: 7.543 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/0.2459, allocations: 291.3 kB / 0.7537 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.2461, allocations: 16 kB / 0.7538 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009006/0.247, allocations: 131.8 kB / 0.7539 GB, free: 7.094 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.537e-05/0.2471, allocations: 52.45 kB / 0.7539 GB, free: 7.043 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.259e-05/0.2472, allocations: 31.97 kB / 0.754 GB, free: 7.012 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00088/0.2481, allocations: 0.756 MB / 0.7547 GB, free: 6.25 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2481, allocations: 0 / 0.7547 GB, free: 6.25 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009717/0.249, allocations: 347.5 kB / 0.755 GB, free: 5.91 MB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001377/0.2504, allocations: 0.6521 MB / 0.7557 GB, free: 5.422 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002953/0.2534, allocations: 1.122 MB / 0.7568 GB, free: 4.301 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.2534, allocations: 0 / 0.7568 GB, free: 4.301 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001485/0.2549, allocations: 0.5853 MB / 0.7573 GB, free: 3.719 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/0.2568, allocations: 434.5 kB / 0.7577 GB, free: 3.297 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004645/0.2614, allocations: 2.696 MB / 0.7604 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006597/0.2621, allocations: 1.108 MB / 0.7615 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009958/0.2631, allocations: 236.7 kB / 0.7617 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.2634, allocations: 107.4 kB / 0.7618 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of SimCode: time 3.3e-07/0.2634, allocations: 0 / 0.7618 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of Templates: time 0.2744/0.5378, allocations: 18.46 MB / 0.7798 GB, free: 91.6 MB / 0.5606 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)