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.008249/0.008249, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001266/0.001266, allocations: 189.8 kB / 16.67 MB, free: 5.934 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00207/0.002069, allocations: 297.2 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9193/0.9193, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 91.86 kB / 0.681 GB, free: 7.438 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4261, allocations: 86.98 MB / 0.7659 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02814/0.4543, allocations: 29.33 MB / 0.7946 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009727/0.464, allocations: 6.878 MB / 0.8013 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.4654, allocations: 51.62 kB / 0.8013 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.4671, allocations: 0.6914 MB / 0.802 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.4708, allocations: 1.52 MB / 0.8035 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00268/0.4735, allocations: 1.144 MB / 0.8046 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003034/0.4765, allocations: 2.485 MB / 0.807 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0013/0.4779, allocations: 0.8019 MB / 0.8078 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001956/0.4798, allocations: 1.039 MB / 0.8088 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.4811, allocations: 0.8208 MB / 0.8096 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002052/0.4813, allocations: 64 kB / 0.8097 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.4832, allocations: 0.8188 MB / 0.8105 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003554/0.4835, allocations: 274.9 kB / 0.8108 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007892/0.4843, allocations: 0.5592 MB / 0.8113 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.4871, allocations: 1.643 MB / 0.8129 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4871, allocations: 4 kB / 0.8129 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4871, allocations: 7.875 kB / 0.8129 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.79e-05/0.4872, allocations: 0 / 0.8129 GB, free: 3.539 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.003102/0.4903, allocations: 1.612 MB / 0.8145 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.4904, allocations: 8.031 kB / 0.8145 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.4905, allocations: 114.7 kB / 0.8146 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003447/0.494, allocations: 0.6008 MB / 0.8152 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001723/0.4957, allocations: 0.8846 MB / 0.8161 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.577e-05/0.4958, allocations: 58.12 kB / 0.8161 GB, free: 144 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.496, allocations: 75.98 kB / 0.8162 GB, free: 68 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/0.4985, allocations: 1.096 MB / 0.8173 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.4985, allocations: 3.938 kB / 0.8173 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.4986, allocations: 28 kB / 0.8173 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.4986, allocations: 20 kB / 0.8173 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003/0.5016, allocations: 1 MB / 0.8183 GB, free: 13.84 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.005328/0.507, allocations: 4.952 MB / 0.8231 GB, free: 8.594 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/0.5097, allocations: 0.9002 MB / 0.824 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.5112, allocations: 483.1 kB / 0.8245 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001192/0.5124, allocations: 1.595 MB / 0.826 GB, free: 5.27 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001588/0.514, allocations: 0.5728 MB / 0.8266 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 2.555e-06/0.514, allocations: 0 / 0.8266 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.00471/0.5187, allocations: 1.482 MB / 0.828 GB, free: 3.199 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.5187, allocations: 63.95 kB / 0.8281 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.52, allocations: 1.116 MB / 0.8292 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.81e-05/0.5201, allocations: 49.64 kB / 0.8292 GB, free: 1.941 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000389/0.5205, allocations: 0.5559 MB / 0.8298 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.5207, allocations: 214.2 kB / 0.83 GB, free: 1.172 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/0.5209, allocations: 166.6 kB / 0.8301 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.521, allocations: 334 kB / 0.8305 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.5224, allocations: 449.6 kB / 0.8309 GB, free: 236 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.524, allocations: 0.725 MB / 0.8316 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/0.527, allocations: 1.109 MB / 0.8327 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.527, allocations: 4 kB / 0.8327 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003612/0.5306, allocations: 1.282 MB / 0.8339 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.5306, allocations: 12 kB / 0.8339 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.5307, allocations: 4 kB / 0.834 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.988e-05/0.5307, allocations: 12 kB / 0.834 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.5319, allocations: 276.2 kB / 0.8342 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.337e-05/0.5319, allocations: 19.92 kB / 0.8342 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.5331, allocations: 175.3 kB / 0.8344 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.381e-05/0.5332, allocations: 47.98 kB / 0.8345 GB, free: 12.36 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.0003953/0.5336, allocations: 290.2 kB / 0.8347 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.5338, allocations: 131.2 kB / 0.8349 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00366/0.5375, allocations: 1.369 MB / 0.8362 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.5375, allocations: 8 kB / 0.8362 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.5375, allocations: 3.984 kB / 0.8362 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5375, allocations: 0 / 0.8362 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004841/0.5424, allocations: 2.366 MB / 0.8385 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5424, allocations: 4 kB / 0.8385 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5434, allocations: 191.9 kB / 0.8387 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.5434, allocations: 4 kB / 0.8387 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.984e-05/0.5435, allocations: 27.97 kB / 0.8387 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5435, allocations: 4 kB / 0.8387 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.5435, allocations: 3.938 kB / 0.8387 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004846/0.5484, allocations: 1.978 MB / 0.8407 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004247/0.5488, allocations: 288 kB / 0.841 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.549, allocations: 16 kB / 0.841 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000934/0.5499, allocations: 107.9 kB / 0.8411 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.55, allocations: 56.36 kB / 0.8411 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.777e-05/0.5501, allocations: 35.97 kB / 0.8412 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008519/0.551, allocations: 0.7677 MB / 0.8419 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.551, allocations: 0 / 0.8419 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009714/0.5519, allocations: 343.4 kB / 0.8422 GB, free: 4.242 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.006412/0.5584, allocations: 3.09 MB / 0.8453 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003233/0.5616, allocations: 1.114 MB / 0.8463 GB, free: 168 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5616, allocations: 0 / 0.8463 GB, free: 168 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.5632, allocations: 0.5697 MB / 0.8469 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.5653, allocations: 462 kB / 0.8473 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.5827, allocations: 9.619 MB / 0.8567 GB, free: 5.164 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/0.5833, allocations: 1.108 MB / 0.8578 GB, free: 4.027 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0008583/0.5842, allocations: 248.3 kB / 0.858 GB, free: 3.785 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006068/0.5848, allocations: 467.2 kB / 0.8585 GB, free: 3.328 MB / 0.6231 GB Notification: Performance of SimCode: time 8.11e-07/0.5848, allocations: 0 / 0.8585 GB, free: 3.328 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06874/0.6536, allocations: 30.68 MB / 0.8885 GB, free: 5.094 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.723/10.38, allocations: 11.19 kB / 0.8885 GB, free: 5.086 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.48 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)