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.005827/0.005826, allocations: 98.45 kB / 15.73 MB, free: 6.066 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.001113/0.001114, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002078/0.002078, allocations: 290.2 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9577/0.9577, allocations: 169.3 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 99.83 kB / 0.6815 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4283/0.4302, allocations: 86.99 MB / 0.7664 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02862/0.4588, allocations: 29.32 MB / 0.7951 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009969/0.4689, allocations: 6.878 MB / 0.8018 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.4703, allocations: 47.69 kB / 0.8018 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.4721, allocations: 0.6953 MB / 0.8025 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.4758, allocations: 1.454 MB / 0.8039 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00274/0.4785, allocations: 1.148 MB / 0.805 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003263/0.4818, allocations: 2.477 MB / 0.8075 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.4831, allocations: 0.79 MB / 0.8082 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.485, allocations: 1.051 MB / 0.8093 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.4862, allocations: 0.813 MB / 0.8101 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.4863, allocations: 68 kB / 0.8101 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001853/0.4882, allocations: 0.8148 MB / 0.8109 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.4885, allocations: 278.9 kB / 0.8112 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005855/0.4891, allocations: 0.5515 MB / 0.8117 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002326/0.4914, allocations: 1.634 MB / 0.8133 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4914, allocations: 0 / 0.8133 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4914, allocations: 4 kB / 0.8133 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.962e-05/0.4915, allocations: 4 kB / 0.8133 GB, free: 3.602 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.002448/0.4939, allocations: 1.562 MB / 0.8148 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.494, allocations: 8.031 kB / 0.8149 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003344/0.4973, allocations: 0.5923 MB / 0.8154 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.4987, allocations: 0.868 MB / 0.8163 GB, free: 464 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.229e-05/0.4987, allocations: 58.38 kB / 0.8163 GB, free: 408 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.4989, allocations: 75.94 kB / 0.8164 GB, free: 332 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.5013, allocations: 1.099 MB / 0.8175 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.5014, allocations: 4 kB / 0.8175 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.5014, allocations: 32 kB / 0.8175 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.5015, allocations: 16 kB / 0.8175 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002939/0.5044, allocations: 1.004 MB / 0.8185 GB, free: 14.09 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.005336/0.5098, allocations: 4.939 MB / 0.8233 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.5126, allocations: 0.9067 MB / 0.8242 GB, free: 7.941 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.514, allocations: 491.1 kB / 0.8247 GB, free: 7.461 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001201/0.5152, allocations: 1.583 MB / 0.8262 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001649/0.5169, allocations: 0.5768 MB / 0.8268 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 2.785e-06/0.5169, allocations: 0 / 0.8268 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.004644/0.5216, allocations: 1.481 MB / 0.8282 GB, free: 3.453 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.5216, allocations: 59.97 kB / 0.8283 GB, free: 3.383 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.5229, allocations: 1.12 MB / 0.8294 GB, free: 2.25 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.075e-05/0.5229, allocations: 41.7 kB / 0.8294 GB, free: 2.203 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004114/0.5234, allocations: 0.5473 MB / 0.83 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.5235, allocations: 209 kB / 0.8302 GB, free: 1.445 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.5238, allocations: 162.5 kB / 0.8303 GB, free: 1.281 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5239, allocations: 337.9 kB / 0.8306 GB, free: 0.9453 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/0.5254, allocations: 453.6 kB / 0.8311 GB, free: 0.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.527, allocations: 0.7173 MB / 0.8318 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002979/0.53, allocations: 1.109 MB / 0.8329 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.53, allocations: 0 / 0.8329 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003545/0.5335, allocations: 1.282 MB / 0.8341 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.5336, allocations: 8 kB / 0.8341 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.5336, allocations: 8 kB / 0.8341 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.5336, allocations: 12.75 kB / 0.8341 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.5348, allocations: 271.6 kB / 0.8344 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.807e-05/0.5349, allocations: 23.95 kB / 0.8344 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.536, allocations: 182.9 kB / 0.8346 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9e-05/0.5361, allocations: 47.97 kB / 0.8346 GB, free: 12.63 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.000441/0.5366, allocations: 287.8 kB / 0.8349 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.5367, allocations: 122.4 kB / 0.835 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.5405, allocations: 1.361 MB / 0.8364 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/0.5405, allocations: 12 kB / 0.8364 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5405, allocations: 0 / 0.8364 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.5405, allocations: 3.984 kB / 0.8364 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004813/0.5453, allocations: 2.362 MB / 0.8387 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.5454, allocations: 4 kB / 0.8387 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.5464, allocations: 183.9 kB / 0.8389 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.5464, allocations: 8 kB / 0.8389 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-05/0.5465, allocations: 27.97 kB / 0.8389 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.5465, allocations: 4 kB / 0.8389 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5465, allocations: 3.938 kB / 0.8389 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005056/0.5515, allocations: 1.973 MB / 0.8408 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004454/0.552, allocations: 279.3 kB / 0.8411 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.5522, allocations: 20 kB / 0.8411 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009099/0.5531, allocations: 107.9 kB / 0.8412 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.5532, allocations: 56.36 kB / 0.8413 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.892e-05/0.5533, allocations: 39.97 kB / 0.8413 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000894/0.5542, allocations: 0.7638 MB / 0.8421 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5542, allocations: 0 / 0.8421 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001035/0.5552, allocations: 339.6 kB / 0.8424 GB, free: 4.547 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.001477/0.5567, allocations: 0.6715 MB / 0.843 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003331/0.5601, allocations: 1.114 MB / 0.8441 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5601, allocations: 0 / 0.8441 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.5617, allocations: 0.5697 MB / 0.8447 GB, free: 2.355 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.5638, allocations: 452.9 kB / 0.8451 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004779/0.5686, allocations: 2.334 MB / 0.8474 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.5692, allocations: 1.11 MB / 0.8485 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000932/0.5702, allocations: 240.7 kB / 0.8487 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003101/0.5705, allocations: 111.4 kB / 0.8488 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of SimCode: time 8.82e-07/0.5705, allocations: 0 / 0.8488 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of Templates: time 0.03367/0.6042, allocations: 20.02 MB / 0.8684 GB, free: 10.35 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)