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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004902/0.004902, allocations: 104.2 kB / 15.73 MB, free: 6.043 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.001203/0.001203, allocations: 189.6 kB / 16.67 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.376/1.376, allocations: 222.9 MB / 240.4 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.002175/0.002175, allocations: 291 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.978/0.978, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003348/0.003348, allocations: 99.84 kB / 0.681 GB, free: 7.426 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5695/0.5729, allocations: 86.98 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03199/0.6049, allocations: 29.33 MB / 0.7946 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01094/0.6159, allocations: 6.878 MB / 0.8013 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.6173, allocations: 47.69 kB / 0.8013 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001757/0.6191, allocations: 0.6953 MB / 0.802 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003888/0.623, allocations: 1.45 MB / 0.8034 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003084/0.6262, allocations: 1.157 MB / 0.8046 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003354/0.6295, allocations: 2.477 MB / 0.807 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00145/0.631, allocations: 0.7904 MB / 0.8078 GB, free: 8.883 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002026/0.633, allocations: 1.015 MB / 0.8087 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.6346, allocations: 0.8092 MB / 0.8095 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002713/0.6349, allocations: 68 kB / 0.8096 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002172/0.6371, allocations: 0.8226 MB / 0.8104 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003868/0.6375, allocations: 275 kB / 0.8107 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00088/0.6384, allocations: 0.5476 MB / 0.8112 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.6414, allocations: 1.639 MB / 0.8128 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.6414, allocations: 0 / 0.8128 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6414, allocations: 0 / 0.8128 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.364e-05/0.6415, allocations: 0 / 0.8128 GB, free: 3.695 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.00303/0.6445, allocations: 1.566 MB / 0.8143 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.6446, allocations: 19.91 kB / 0.8144 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.6448, allocations: 118.7 kB / 0.8145 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003555/0.6483, allocations: 0.5806 MB / 0.815 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/0.65, allocations: 0.8719 MB / 0.8159 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.6501, allocations: 66.11 kB / 0.8159 GB, free: 360 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.6502, allocations: 72 kB / 0.816 GB, free: 288 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/0.6528, allocations: 1.096 MB / 0.8171 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.6529, allocations: 0 / 0.8171 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.868e-05/0.653, allocations: 32 kB / 0.8171 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.653, allocations: 20 kB / 0.8171 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003229/0.6562, allocations: 1.008 MB / 0.8181 GB, free: 14.04 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.006036/0.6623, allocations: 4.935 MB / 0.8229 GB, free: 8.816 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003048/0.6653, allocations: 0.9096 MB / 0.8238 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.6669, allocations: 487.1 kB / 0.8243 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001345/0.6682, allocations: 1.591 MB / 0.8258 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001776/0.67, allocations: 0.569 MB / 0.8264 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 3.857e-06/0.6701, allocations: 0 / 0.8264 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.005043/0.6751, allocations: 1.485 MB / 0.8278 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.6752, allocations: 63.97 kB / 0.8279 GB, free: 3.34 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.6766, allocations: 1.12 MB / 0.829 GB, free: 2.207 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.811e-05/0.6767, allocations: 37.7 kB / 0.829 GB, free: 2.164 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004558/0.6772, allocations: 0.5435 MB / 0.8296 GB, free: 1.617 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.6774, allocations: 213 kB / 0.8298 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.6777, allocations: 158.5 kB / 0.8299 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6778, allocations: 334 kB / 0.8302 GB, free: 0.9141 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.6793, allocations: 453.6 kB / 0.8307 GB, free: 480 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.6811, allocations: 0.7173 MB / 0.8314 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/0.6843, allocations: 1.113 MB / 0.8325 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.6843, allocations: 7.938 kB / 0.8325 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003837/0.6882, allocations: 1.278 MB / 0.8337 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.6882, allocations: 8 kB / 0.8337 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.6882, allocations: 16.06 kB / 0.8337 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/0.6883, allocations: 12 kB / 0.8338 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.6896, allocations: 263.6 kB / 0.834 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.892e-05/0.6896, allocations: 15.94 kB / 0.834 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.6911, allocations: 186.9 kB / 0.8342 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.6912, allocations: 39.98 kB / 0.8342 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.0006596/0.6919, allocations: 295.8 kB / 0.8345 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.6922, allocations: 122.4 kB / 0.8346 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004144/0.6964, allocations: 1.355 MB / 0.836 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-05/0.6964, allocations: 15.98 kB / 0.836 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.6964, allocations: 4.094 kB / 0.836 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.6964, allocations: 7.922 kB / 0.836 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005332/0.7018, allocations: 2.362 MB / 0.8383 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.7018, allocations: 0 / 0.8383 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.7029, allocations: 187.9 kB / 0.8385 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.703, allocations: 4 kB / 0.8385 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.079e-05/0.703, allocations: 27.97 kB / 0.8385 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.756e-06/0.7031, allocations: 4 kB / 0.8385 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.7031, allocations: 11.88 kB / 0.8385 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005293/0.7084, allocations: 1.973 MB / 0.8404 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005231/0.7089, allocations: 271.3 kB / 0.8407 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.7091, allocations: 20 kB / 0.8407 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.7101, allocations: 103.9 kB / 0.8408 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.7103, allocations: 60.38 kB / 0.8409 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.813e-05/0.7104, allocations: 31.97 kB / 0.8409 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001017/0.7114, allocations: 0.7638 MB / 0.8417 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7114, allocations: 0 / 0.8417 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001161/0.7126, allocations: 343.6 kB / 0.842 GB, free: 4.512 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.007363/0.7199, allocations: 3.081 MB / 0.845 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003518/0.7235, allocations: 1.122 MB / 0.8461 GB, free: 444 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.7235, allocations: 0 / 0.8461 GB, free: 444 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00175/0.7253, allocations: 0.5736 MB / 0.8466 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.7276, allocations: 452 kB / 0.8471 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01934/0.747, allocations: 9.586 MB / 0.8564 GB, free: 5.473 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008093/0.7478, allocations: 1.104 MB / 0.8575 GB, free: 4.34 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0009769/0.7488, allocations: 236.7 kB / 0.8577 GB, free: 4.105 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006807/0.7495, allocations: 467.2 kB / 0.8582 GB, free: 3.648 MB / 0.6231 GB Notification: Performance of SimCode: time 2.204e-06/0.7495, allocations: 3.938 kB / 0.8582 GB, free: 3.645 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.94/2.69, allocations: 30.69 MB / 0.8882 GB, free: 5.41 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/17.3, allocations: 8.188 kB / 0.8882 GB, free: 5.402 MB / 0.6544 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)