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.005234/0.005234, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001309/0.001309, allocations: 198.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.403/1.403, 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.002469/0.002469, allocations: 282.5 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 1.213/1.213, allocations: 178.5 MB / 0.5074 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 103.8 kB / 0.6943 GB, free: 15.15 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4484/0.4511, allocations: 89.11 MB / 0.7814 GB, free: 1.133 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03172/0.4829, allocations: 29.34 MB / 0.81 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0125/0.4954, allocations: 6.88 MB / 0.8167 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.4969, allocations: 47.53 kB / 0.8168 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.4988, allocations: 0.6896 MB / 0.8174 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003902/0.5027, allocations: 1.46 MB / 0.8189 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00294/0.5056, allocations: 1.162 MB / 0.82 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003633/0.5093, allocations: 2.469 MB / 0.8224 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.5105, allocations: 0.7943 MB / 0.8232 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001848/0.5124, allocations: 1.008 MB / 0.8242 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.5135, allocations: 0.8169 MB / 0.825 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.5136, allocations: 68 kB / 0.825 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001897/0.5155, allocations: 0.8187 MB / 0.8258 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.5158, allocations: 275 kB / 0.8261 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000562/0.5164, allocations: 0.5476 MB / 0.8266 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002357/0.5187, allocations: 1.63 MB / 0.8282 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.5188, allocations: 0 / 0.8282 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.336e-06/0.5188, allocations: 0 / 0.8282 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.41e-05/0.5188, allocations: 3.938 kB / 0.8282 GB, free: 8.582 MB / 0.5919 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.002639/0.5214, allocations: 1.615 MB / 0.8298 GB, free: 6.91 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.5215, allocations: 12.03 kB / 0.8298 GB, free: 6.898 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.5216, allocations: 114.7 kB / 0.8299 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003471/0.5251, allocations: 0.5931 MB / 0.8305 GB, free: 6.184 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.5266, allocations: 0.8769 MB / 0.8314 GB, free: 5.254 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.429e-05/0.5267, allocations: 62.12 kB / 0.8314 GB, free: 5.191 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.5268, allocations: 68 kB / 0.8315 GB, free: 5.125 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.5294, allocations: 1.111 MB / 0.8326 GB, free: 3.934 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.5294, allocations: 0 / 0.8326 GB, free: 3.934 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.967e-05/0.5295, allocations: 35.98 kB / 0.8326 GB, free: 3.898 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/0.5295, allocations: 16 kB / 0.8326 GB, free: 3.883 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.5327, allocations: 1 MB / 0.8336 GB, free: 2.883 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.006285/0.539, allocations: 4.944 MB / 0.8384 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003092/0.5421, allocations: 0.9096 MB / 0.8393 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.5437, allocations: 486.2 kB / 0.8398 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001636/0.5453, allocations: 1.592 MB / 0.8413 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001744/0.5471, allocations: 0.569 MB / 0.8419 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=61): time 6.372e-06/0.5471, allocations: 0 / 0.8419 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=61): time 0.005028/0.5521, allocations: 1.497 MB / 0.8434 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.5522, allocations: 59.97 kB / 0.8434 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/0.5536, allocations: 1.112 MB / 0.8445 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.092e-05/0.5537, allocations: 49.69 kB / 0.8445 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000492/0.5542, allocations: 0.5442 MB / 0.8451 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.5545, allocations: 222.2 kB / 0.8453 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/0.5547, allocations: 166.6 kB / 0.8454 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.5549, allocations: 333.9 kB / 0.8458 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.5564, allocations: 445.6 kB / 0.8462 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.5582, allocations: 0.7166 MB / 0.8469 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003134/0.5614, allocations: 1.124 MB / 0.848 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.5614, allocations: 0 / 0.848 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003755/0.5651, allocations: 1.282 MB / 0.8492 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.5652, allocations: 8 kB / 0.8492 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.5652, allocations: 8 kB / 0.8493 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.649e-05/0.5652, allocations: 12 kB / 0.8493 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.5664, allocations: 272.3 kB / 0.8495 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.133e-05/0.5665, allocations: 15.94 kB / 0.8495 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.5677, allocations: 183.2 kB / 0.8497 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.5678, allocations: 47.97 kB / 0.8498 GB, free: 1.387 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.000503/0.5683, allocations: 288.3 kB / 0.85 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.5685, allocations: 139.1 kB / 0.8502 GB, free: 0.9609 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00392/0.5724, allocations: 1.362 MB / 0.8515 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/0.5724, allocations: 4 kB / 0.8515 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5725, allocations: 4 kB / 0.8515 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.5725, allocations: 3.984 kB / 0.8515 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005162/0.5776, allocations: 2.378 MB / 0.8538 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.5777, allocations: 0 / 0.8538 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.5787, allocations: 191.9 kB / 0.854 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.5787, allocations: 4 kB / 0.854 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.291e-05/0.5788, allocations: 27.97 kB / 0.854 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.5788, allocations: 11.94 kB / 0.8541 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5788, allocations: 7.922 kB / 0.8541 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005335/0.5842, allocations: 1.978 MB / 0.856 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/0.5846, allocations: 280 kB / 0.8563 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.5848, allocations: 23.98 kB / 0.8563 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009091/0.5857, allocations: 99.97 kB / 0.8564 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.5858, allocations: 56.38 kB / 0.8564 GB, free: 10.4 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.031e-05/0.5859, allocations: 31.97 kB / 0.8565 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009963/0.5869, allocations: 0.7716 MB / 0.8572 GB, free: 9.594 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5869, allocations: 0 / 0.8572 GB, free: 9.594 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00106/0.588, allocations: 351.3 kB / 0.8576 GB, free: 9.25 MB / 0.6231 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.007497/0.5955, allocations: 3.083 MB / 0.8606 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003511/0.599, allocations: 1.107 MB / 0.8616 GB, free: 5.184 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.599, allocations: 4 kB / 0.8616 GB, free: 5.18 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.6008, allocations: 0.5775 MB / 0.8622 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.6029, allocations: 455.1 kB / 0.8626 GB, free: 4.168 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01918/0.6221, allocations: 9.607 MB / 0.872 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007665/0.6229, allocations: 1.106 MB / 0.8731 GB, free: 9.051 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0009471/0.6239, allocations: 248.7 kB / 0.8733 GB, free: 8.805 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006721/0.6245, allocations: 463.2 kB / 0.8738 GB, free: 8.352 MB / 0.6387 GB Notification: Performance of SimCode: time 1.443e-06/0.6245, allocations: 0 / 0.8738 GB, free: 8.352 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0663/0.6909, allocations: 30.7 MB / 0.9038 GB, free: 10.09 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.09, allocations: 11.39 kB / 0.9038 GB, free: 10.09 MB / 0.67 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)