Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_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.00733/0.00733, allocations: 102 kB / 15.73 MB, free: 6.051 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.001672/0.001672, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.283/2.283, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 67.89 kB / 0.9504 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7906/0.792, allocations: 140.4 MB / 1.087 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02976/0.8218, allocations: 29.33 MB / 1.116 GB, free: 204 kB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01198/0.8338, allocations: 6.893 MB / 1.123 GB, free: 11.3 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001663/0.8356, allocations: 45.62 kB / 1.123 GB, free: 11.29 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00202/0.8376, allocations: 0.6892 MB / 1.124 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005024/0.8427, allocations: 1.46 MB / 1.125 GB, free: 10.15 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003493/0.8462, allocations: 1.148 MB / 1.126 GB, free: 9.582 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003879/0.8501, allocations: 2.474 MB / 1.129 GB, free: 8.477 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.8516, allocations: 0.7922 MB / 1.129 GB, free: 8.145 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.8541, allocations: 1.018 MB / 1.13 GB, free: 7.699 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.8554, allocations: 0.8139 MB / 1.131 GB, free: 7.363 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.8556, allocations: 67.06 kB / 1.131 GB, free: 7.363 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00222/0.8578, allocations: 0.8164 MB / 1.132 GB, free: 7.051 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0003453/0.8582, allocations: 278.2 kB / 1.132 GB, free: 6.906 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0006494/0.8588, allocations: 0.5488 MB / 1.133 GB, free: 6.566 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002707/0.8615, allocations: 1.618 MB / 1.134 GB, free: 5.934 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.8616, allocations: 5.312 kB / 1.134 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8616, allocations: 0 / 1.134 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.741e-05/0.8616, allocations: 0 / 1.134 GB, free: 5.93 MB / 0.8887 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.002915/0.8645, allocations: 1.56 MB / 1.136 GB, free: 4.871 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.8646, allocations: 13.78 kB / 1.136 GB, free: 4.867 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.8647, allocations: 115.5 kB / 1.136 GB, free: 4.785 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003776/0.8685, allocations: 0.5891 MB / 1.137 GB, free: 4.684 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.8703, allocations: 0.8678 MB / 1.137 GB, free: 4.164 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.254e-05/0.8703, allocations: 62.2 kB / 1.137 GB, free: 4.133 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.8705, allocations: 73.41 kB / 1.138 GB, free: 4.109 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.8732, allocations: 1.097 MB / 1.139 GB, free: 3.594 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.8732, allocations: 5.188 kB / 1.139 GB, free: 3.59 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.609e-05/0.8733, allocations: 33.39 kB / 1.139 GB, free: 3.566 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.8734, allocations: 21.78 kB / 1.139 GB, free: 3.562 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003434/0.8768, allocations: 1.003 MB / 1.14 GB, free: 3.297 MB / 0.8887 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.006554/0.8834, allocations: 4.94 MB / 1.144 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003173/0.8866, allocations: 0.9053 MB / 1.145 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001578/0.8882, allocations: 488.8 kB / 1.146 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001324/0.8895, allocations: 1.589 MB / 1.147 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001868/0.8914, allocations: 0.5721 MB / 1.148 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=61): time 3.407e-06/0.8914, allocations: 0 / 1.148 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=61): time 0.005352/0.8967, allocations: 1.477 MB / 1.149 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.8968, allocations: 70.72 kB / 1.149 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.8983, allocations: 1.114 MB / 1.151 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 8.981e-05/0.8984, allocations: 38.38 kB / 1.151 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/0.8988, allocations: 0.5463 MB / 1.151 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.899, allocations: 212.6 kB / 1.151 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002741/0.8993, allocations: 162 kB / 1.151 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.8994, allocations: 335.1 kB / 1.152 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.901, allocations: 453.4 kB / 1.152 GB, free: 11 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.9027, allocations: 0.7196 MB / 1.153 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/0.906, allocations: 1.117 MB / 1.154 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.906, allocations: 2.625 kB / 1.154 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003912/0.9099, allocations: 1.272 MB / 1.155 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.91, allocations: 8.688 kB / 1.155 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.91, allocations: 15.5 kB / 1.155 GB, free: 9.543 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.91, allocations: 16.97 kB / 1.155 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.9113, allocations: 263.7 kB / 1.156 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.082e-05/0.9113, allocations: 16.88 kB / 1.156 GB, free: 9.516 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.9127, allocations: 184.4 kB / 1.156 GB, free: 9.445 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.9128, allocations: 44.3 kB / 1.156 GB, free: 9.441 MB / 0.9044 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.0005478/0.9133, allocations: 292.3 kB / 1.156 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.9135, allocations: 123.2 kB / 1.156 GB, free: 9.176 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.9176, allocations: 1.351 MB / 1.158 GB, free: 8.641 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/0.9176, allocations: 16.2 kB / 1.158 GB, free: 8.633 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.9177, allocations: 4 kB / 1.158 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.9177, allocations: 3.984 kB / 1.158 GB, free: 8.625 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005375/0.9231, allocations: 2.36 MB / 1.16 GB, free: 7.113 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.9231, allocations: 2.188 kB / 1.16 GB, free: 7.113 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.9242, allocations: 193.8 kB / 1.16 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-06/0.9242, allocations: 4.5 kB / 1.16 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.258e-05/0.9243, allocations: 29.75 kB / 1.16 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.9243, allocations: 4.531 kB / 1.16 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.9243, allocations: 5.094 kB / 1.16 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005497/0.9298, allocations: 1.976 MB / 1.162 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006224/0.9305, allocations: 277.6 kB / 1.162 GB, free: 5.688 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.9306, allocations: 18.31 kB / 1.162 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.9317, allocations: 106 kB / 1.162 GB, free: 5.629 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.9318, allocations: 59.09 kB / 1.162 GB, free: 5.594 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.197e-05/0.9319, allocations: 33.06 kB / 1.162 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001012/0.9329, allocations: 0.767 MB / 1.163 GB, free: 5.18 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9329, allocations: 1.062 kB / 1.163 GB, free: 5.18 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001316/0.9342, allocations: 344.4 kB / 1.164 GB, free: 5.098 MB / 0.9044 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.007969/0.9422, allocations: 3.077 MB / 1.167 GB, free: 3.266 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003966/0.9462, allocations: 1.119 MB / 1.168 GB, free: 2.762 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.9462, allocations: 0 / 1.168 GB, free: 2.762 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001709/0.9479, allocations: 0.5691 MB / 1.168 GB, free: 2.504 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.9502, allocations: 453.2 kB / 1.169 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/0.9694, allocations: 9.582 MB / 1.178 GB, free: 12.47 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/0.9701, allocations: 1.106 MB / 1.179 GB, free: 11.59 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00105/0.9711, allocations: 243.7 kB / 1.179 GB, free: 11.47 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006463/0.9718, allocations: 467.9 kB / 1.18 GB, free: 11.09 MB / 0.92 GB Notification: Performance of SimCode: time 7.51e-07/0.9718, allocations: 0.9688 kB / 1.18 GB, free: 11.09 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06358/1.035, allocations: 30.66 MB / 1.21 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.37, allocations: 3.75 kB / 1.21 GB, free: 15.89 MB / 0.9512 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)