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.006248/0.006248, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001301/0.001301, allocations: 197.7 kB / 16.68 MB, free: 5.969 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.356/1.356, 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.002434/0.002434, allocations: 290.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9711/0.9711, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002849/0.002849, allocations: 104.1 kB / 0.681 GB, free: 7.422 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4436/0.4465, allocations: 86.98 MB / 0.7659 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03737/0.4839, allocations: 29.32 MB / 0.7946 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01272/0.4966, allocations: 6.878 MB / 0.8013 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.4987, allocations: 47.62 kB / 0.8013 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002033/0.5008, allocations: 0.6914 MB / 0.802 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004179/0.505, allocations: 1.454 MB / 0.8034 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003179/0.5082, allocations: 1.155 MB / 0.8046 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003915/0.5121, allocations: 2.477 MB / 0.807 GB, free: 9.652 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.5138, allocations: 0.7941 MB / 0.8078 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.5161, allocations: 1.012 MB / 0.8087 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001567/0.5177, allocations: 0.813 MB / 0.8095 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002708/0.518, allocations: 68 kB / 0.8096 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00216/0.5202, allocations: 0.8187 MB / 0.8104 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004676/0.5207, allocations: 275 kB / 0.8107 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008682/0.5216, allocations: 0.5553 MB / 0.8112 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003385/0.525, allocations: 1.643 MB / 0.8128 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.525, allocations: 0 / 0.8128 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.843e-06/0.525, allocations: 3.938 kB / 0.8128 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.149e-05/0.5251, allocations: 0 / 0.8128 GB, free: 3.656 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.003348/0.5284, allocations: 1.612 MB / 0.8144 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.5285, allocations: 12.03 kB / 0.8144 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001744/0.5287, allocations: 118.7 kB / 0.8145 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003549/0.5322, allocations: 0.5931 MB / 0.8151 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.5341, allocations: 0.8807 MB / 0.816 GB, free: 324 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.659e-05/0.5342, allocations: 66.11 kB / 0.816 GB, free: 260 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.5343, allocations: 75.98 kB / 0.8161 GB, free: 184 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002706/0.537, allocations: 1.092 MB / 0.8172 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.5371, allocations: 7.938 kB / 0.8172 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.828e-05/0.5372, allocations: 32 kB / 0.8172 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.095e-05/0.5372, allocations: 16 kB / 0.8172 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003248/0.5405, allocations: 1.004 MB / 0.8182 GB, free: 13.95 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.00705/0.5475, allocations: 4.936 MB / 0.823 GB, free: 8.719 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/0.5508, allocations: 0.9044 MB / 0.8239 GB, free: 7.809 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.5525, allocations: 497.8 kB / 0.8244 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00164/0.5542, allocations: 1.591 MB / 0.8259 GB, free: 5.383 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001898/0.5561, allocations: 0.5728 MB / 0.8265 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 3.938e-06/0.5561, allocations: 0 / 0.8265 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.00513/0.5612, allocations: 1.489 MB / 0.8279 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.5613, allocations: 59.97 kB / 0.828 GB, free: 3.234 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.5628, allocations: 1.112 MB / 0.8291 GB, free: 2.109 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.5629, allocations: 45.64 kB / 0.8291 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004999/0.5634, allocations: 0.552 MB / 0.8297 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.5637, allocations: 222.2 kB / 0.8299 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002827/0.564, allocations: 162.6 kB / 0.83 GB, free: 1.121 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.5641, allocations: 342 kB / 0.8304 GB, free: 0.7812 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.5657, allocations: 449.6 kB / 0.8308 GB, free: 348 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.5675, allocations: 0.7134 MB / 0.8315 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/0.5707, allocations: 1.117 MB / 0.8326 GB, free: 14.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.443e-06/0.5708, allocations: 0 / 0.8326 GB, free: 14.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003826/0.5746, allocations: 1.287 MB / 0.8338 GB, free: 13 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.5747, allocations: 8 kB / 0.8338 GB, free: 13 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.5747, allocations: 11.94 kB / 0.8338 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/0.5747, allocations: 16.09 kB / 0.8339 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.576, allocations: 271.6 kB / 0.8341 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/0.576, allocations: 19.94 kB / 0.8341 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.5772, allocations: 183.2 kB / 0.8343 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.5773, allocations: 43.98 kB / 0.8344 GB, free: 12.46 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.0005069/0.5778, allocations: 294.2 kB / 0.8346 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.5781, allocations: 135.1 kB / 0.8348 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004016/0.5821, allocations: 1.363 MB / 0.8361 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.391e-05/0.5821, allocations: 11.98 kB / 0.8361 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.5822, allocations: 0 / 0.8361 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.5822, allocations: 3.984 kB / 0.8361 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00546/0.5876, allocations: 2.359 MB / 0.8384 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.5877, allocations: 4 kB / 0.8384 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.5887, allocations: 191.9 kB / 0.8386 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/0.5887, allocations: 4 kB / 0.8386 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.513e-05/0.5888, allocations: 31.97 kB / 0.8386 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.5889, allocations: 4 kB / 0.8386 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5889, allocations: 3.938 kB / 0.8386 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005537/0.5944, allocations: 1.986 MB / 0.8406 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006192/0.5951, allocations: 280 kB / 0.8408 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.5953, allocations: 16 kB / 0.8409 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.5963, allocations: 107.9 kB / 0.841 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.5965, allocations: 52.44 kB / 0.841 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.299e-05/0.5966, allocations: 35.97 kB / 0.8411 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001067/0.5976, allocations: 0.7599 MB / 0.8418 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5977, allocations: 4 kB / 0.8418 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001212/0.5989, allocations: 347.4 kB / 0.8421 GB, free: 4.352 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.008095/0.607, allocations: 3.088 MB / 0.8451 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00375/0.6108, allocations: 1.122 MB / 0.8462 GB, free: 276 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.6108, allocations: 0 / 0.8462 GB, free: 276 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001861/0.6127, allocations: 0.5697 MB / 0.8468 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.6152, allocations: 448 kB / 0.8472 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/0.6367, allocations: 9.619 MB / 0.8566 GB, free: 5.277 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008407/0.6376, allocations: 1.114 MB / 0.8577 GB, free: 4.137 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001061/0.6387, allocations: 246.6 kB / 0.8579 GB, free: 3.895 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008016/0.6395, allocations: 463.2 kB / 0.8584 GB, free: 3.441 MB / 0.6231 GB Notification: Performance of SimCode: time 8.02e-07/0.6395, allocations: 0 / 0.8584 GB, free: 3.441 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0754/0.7149, allocations: 30.68 MB / 0.8883 GB, free: 5.215 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.75, allocations: 12.19 kB / 0.8884 GB, free: 5.203 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)