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.004919/0.004919, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001224/0.001224, allocations: 196.8 kB / 16.67 MB, free: 5.977 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.252/1.252, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001955/0.001955, allocations: 286.8 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8771/0.8771, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 100.2 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1546, allocations: 86.98 MB / 0.7659 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.334/0.4887, allocations: 29.33 MB / 0.7946 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009899/0.4986, allocations: 6.866 MB / 0.8013 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.5, allocations: 44.47 kB / 0.8013 GB, free: 9.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.5016, allocations: 0.69 MB / 0.802 GB, free: 8.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003647/0.5053, allocations: 1.466 MB / 0.8034 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002806/0.5082, allocations: 1.149 MB / 0.8046 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002903/0.5111, allocations: 2.473 MB / 0.807 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.5122, allocations: 0.7992 MB / 0.8077 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.5139, allocations: 1.035 MB / 0.8088 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.515, allocations: 0.8194 MB / 0.8096 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.5151, allocations: 70.91 kB / 0.8096 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002054/0.5172, allocations: 0.8162 MB / 0.8104 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003465/0.5175, allocations: 275.3 kB / 0.8107 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000559/0.5181, allocations: 0.5552 MB / 0.8112 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002192/0.5203, allocations: 1.63 MB / 0.8128 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.5203, allocations: 0 / 0.8128 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.92e-07/0.5203, allocations: 0 / 0.8128 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.291e-05/0.5203, allocations: 1 kB / 0.8128 GB, free: 3.863 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.002484/0.5228, allocations: 1.575 MB / 0.8144 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.5229, allocations: 9.219 kB / 0.8144 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.523, allocations: 119.8 kB / 0.8145 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003362/0.5264, allocations: 0.5816 MB / 0.815 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.5278, allocations: 0.8647 MB / 0.8159 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.5279, allocations: 57.42 kB / 0.8159 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.528, allocations: 78.14 kB / 0.816 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.5303, allocations: 1.104 MB / 0.8171 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.5303, allocations: 7.219 kB / 0.8171 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.676e-05/0.5304, allocations: 28.81 kB / 0.8171 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.5305, allocations: 18.41 kB / 0.8172 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002765/0.5332, allocations: 0.9997 MB / 0.8181 GB, free: 1.23 MB / 0.5762 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.005157/0.5384, allocations: 4.954 MB / 0.823 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002626/0.541, allocations: 0.8996 MB / 0.8238 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/0.5423, allocations: 480.5 kB / 0.8243 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001212/0.5435, allocations: 1.59 MB / 0.8259 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.545, allocations: 0.5774 MB / 0.8264 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 2.935e-06/0.5451, allocations: 1.938 kB / 0.8264 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.004312/0.5494, allocations: 1.481 MB / 0.8279 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.5494, allocations: 62.58 kB / 0.8279 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.5509, allocations: 1.112 MB / 0.829 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.922e-05/0.551, allocations: 43.14 kB / 0.8291 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/0.5514, allocations: 0.5469 MB / 0.8296 GB, free: 8.539 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.5516, allocations: 213.8 kB / 0.8298 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.5519, allocations: 160.2 kB / 0.8299 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.552, allocations: 337.4 kB / 0.8303 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.5533, allocations: 456.3 kB / 0.8307 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00151/0.5548, allocations: 0.7147 MB / 0.8314 GB, free: 7.172 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/0.5576, allocations: 1.125 MB / 0.8325 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.5576, allocations: 1.312 kB / 0.8325 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003305/0.5609, allocations: 1.273 MB / 0.8337 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.5609, allocations: 8.938 kB / 0.8338 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.5609, allocations: 7.656 kB / 0.8338 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.561, allocations: 12.16 kB / 0.8338 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.5621, allocations: 264.8 kB / 0.834 GB, free: 5.723 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.583e-05/0.5621, allocations: 24.48 kB / 0.834 GB, free: 5.715 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.5634, allocations: 181.7 kB / 0.8342 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.5635, allocations: 45.2 kB / 0.8343 GB, free: 5.602 MB / 0.5919 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.0004752/0.564, allocations: 291.3 kB / 0.8345 GB, free: 5.391 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/0.5642, allocations: 129.9 kB / 0.8347 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003561/0.5678, allocations: 1.36 MB / 0.836 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.5678, allocations: 7.5 kB / 0.836 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5678, allocations: 5.047 kB / 0.836 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.5678, allocations: 0 / 0.836 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/0.5726, allocations: 2.368 MB / 0.8383 GB, free: 3.074 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.198e-06/0.5726, allocations: 5.328 kB / 0.8383 GB, free: 3.07 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009736/0.5736, allocations: 182 kB / 0.8385 GB, free: 3.012 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.847e-05/0.5737, allocations: 8.438 kB / 0.8385 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-05/0.5737, allocations: 34.03 kB / 0.8385 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.5737, allocations: 3.875 kB / 0.8385 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.5738, allocations: 1.188 kB / 0.8385 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004825/0.5786, allocations: 1.97 MB / 0.8405 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005099/0.5791, allocations: 273.3 kB / 0.8407 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.5794, allocations: 21.78 kB / 0.8407 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009916/0.5804, allocations: 105.5 kB / 0.8408 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.5805, allocations: 55.58 kB / 0.8409 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.457e-05/0.5806, allocations: 37.38 kB / 0.8409 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001119/0.5817, allocations: 0.7635 MB / 0.8417 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5817, allocations: 0 / 0.8417 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001318/0.5831, allocations: 348.1 kB / 0.842 GB, free: 1.074 MB / 0.5919 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.007554/0.5906, allocations: 3.087 MB / 0.845 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003365/0.594, allocations: 1.109 MB / 0.8461 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.594, allocations: 0 / 0.8461 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.5956, allocations: 0.5743 MB / 0.8467 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/0.5979, allocations: 450.6 kB / 0.8471 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/0.6163, allocations: 9.578 MB / 0.8565 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007104/0.617, allocations: 1.107 MB / 0.8575 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0009317/0.6179, allocations: 251.8 kB / 0.8578 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006366/0.6186, allocations: 459.2 kB / 0.8582 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of SimCode: time 7.62e-07/0.6186, allocations: 0 / 0.8582 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05889/0.6775, allocations: 31.17 MB / 0.8887 GB, free: 4.82 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.144/9.821, allocations: 20.58 kB / 0.8887 GB, free: 4.805 MB / 0.6387 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)