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.001292/0.001292, allocations: 108.8 kB / 16.38 MB, free: 6.473 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.001219/0.001219, allocations: 192.9 kB / 17.31 MB, free: 5.789 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.226/1.226, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002065/0.002065, allocations: 278.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.879/0.879, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 92.19 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4017, allocations: 86.99 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02562/0.4273, allocations: 29.32 MB / 0.7957 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008961/0.4363, allocations: 6.889 MB / 0.8024 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009018/0.4372, allocations: 43.69 kB / 0.8024 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.4386, allocations: 0.6914 MB / 0.8031 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002768/0.4414, allocations: 1.462 MB / 0.8045 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00235/0.4438, allocations: 1.147 MB / 0.8057 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002443/0.4462, allocations: 2.477 MB / 0.8081 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009896/0.4472, allocations: 0.7979 MB / 0.8089 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.4487, allocations: 1.015 MB / 0.8098 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008315/0.4495, allocations: 0.813 MB / 0.8106 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.4496, allocations: 64 kB / 0.8107 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.4512, allocations: 0.8187 MB / 0.8115 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.4514, allocations: 271 kB / 0.8118 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000478/0.4519, allocations: 0.5553 MB / 0.8123 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.4537, allocations: 1.626 MB / 0.8139 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4538, allocations: 4 kB / 0.8139 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4538, allocations: 0 / 0.8139 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.313e-05/0.4538, allocations: 0 / 0.8139 GB, free: 3.789 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.002363/0.4562, allocations: 1.562 MB / 0.8154 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.4562, allocations: 15.91 kB / 0.8154 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003269/0.4595, allocations: 0.5923 MB / 0.816 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.4607, allocations: 0.8719 MB / 0.8169 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.4608, allocations: 58.38 kB / 0.8169 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.4609, allocations: 75.92 kB / 0.817 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002234/0.4632, allocations: 1.096 MB / 0.8181 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.4632, allocations: 3.938 kB / 0.8181 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.161e-05/0.4633, allocations: 28 kB / 0.8181 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.4633, allocations: 20 kB / 0.8181 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.4662, allocations: 1 MB / 0.8191 GB, free: 14.27 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.005038/0.4712, allocations: 4.947 MB / 0.8239 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.474, allocations: 0.9074 MB / 0.8248 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.4754, allocations: 490.4 kB / 0.8253 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001216/0.4767, allocations: 1.583 MB / 0.8268 GB, free: 5.703 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001558/0.4782, allocations: 0.5728 MB / 0.8274 GB, free: 5.117 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 3.236e-06/0.4783, allocations: 4 kB / 0.8274 GB, free: 5.113 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.004577/0.4828, allocations: 1.481 MB / 0.8288 GB, free: 3.629 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.4829, allocations: 59.95 kB / 0.8289 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.4841, allocations: 1.124 MB / 0.83 GB, free: 2.422 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.803e-05/0.4841, allocations: 37.7 kB / 0.83 GB, free: 2.379 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004123/0.4845, allocations: 0.5473 MB / 0.8306 GB, free: 1.828 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.4847, allocations: 205 kB / 0.8307 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/0.4849, allocations: 170.5 kB / 0.8309 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4851, allocations: 330 kB / 0.8312 GB, free: 1.125 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4865, allocations: 461.5 kB / 0.8317 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.4881, allocations: 0.7134 MB / 0.8324 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002903/0.491, allocations: 1.113 MB / 0.8334 GB, free: 14.63 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.491, allocations: 4 kB / 0.8335 GB, free: 14.63 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003379/0.4944, allocations: 1.278 MB / 0.8347 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.4944, allocations: 10.5 kB / 0.8347 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4944, allocations: 8.906 kB / 0.8347 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.389e-05/0.4945, allocations: 12 kB / 0.8347 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.4956, allocations: 267.6 kB / 0.835 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.4956, allocations: 19.92 kB / 0.835 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.4967, allocations: 187 kB / 0.8352 GB, free: 12.85 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.531e-05/0.4968, allocations: 43.98 kB / 0.8352 GB, free: 12.81 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.0003959/0.4972, allocations: 294.2 kB / 0.8355 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.4974, allocations: 122.4 kB / 0.8356 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0036/0.501, allocations: 1.355 MB / 0.8369 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.501, allocations: 4 kB / 0.8369 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.501, allocations: 4 kB / 0.837 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.5011, allocations: 4.078 kB / 0.837 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004628/0.5057, allocations: 2.37 MB / 0.8393 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.5057, allocations: 0 / 0.8393 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009811/0.5067, allocations: 199.8 kB / 0.8395 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.5067, allocations: 4 kB / 0.8395 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.37e-05/0.5068, allocations: 23.97 kB / 0.8395 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.5068, allocations: 4 kB / 0.8395 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5068, allocations: 4 kB / 0.8395 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004866/0.5117, allocations: 1.977 MB / 0.8414 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.5121, allocations: 279.3 kB / 0.8417 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.5122, allocations: 16 kB / 0.8417 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008966/0.5131, allocations: 107.8 kB / 0.8418 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.5132, allocations: 60.36 kB / 0.8419 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-05/0.5133, allocations: 35.97 kB / 0.8419 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008256/0.5141, allocations: 0.7638 MB / 0.8426 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5141, allocations: 0 / 0.8426 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009785/0.5151, allocations: 343.6 kB / 0.843 GB, free: 4.715 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.001331/0.5164, allocations: 0.6522 MB / 0.8436 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003206/0.5197, allocations: 1.114 MB / 0.8447 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5197, allocations: 0 / 0.8447 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.5213, allocations: 0.5736 MB / 0.8453 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.5231, allocations: 456.3 kB / 0.8457 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/0.5276, allocations: 2.386 MB / 0.848 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.5283, allocations: 1.1 MB / 0.8491 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004152/0.5287, allocations: 119.4 kB / 0.8492 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of SimCode: time 7.21e-07/0.5287, allocations: 0 / 0.8492 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of Templates: time 0.02413/0.5529, allocations: 19.02 MB / 0.8678 GB, free: 11.58 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)