Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_10_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.001396/0.001397, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001582/0.001582, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.48/1.48, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.753/2.753, allocations: 437 MB / 0.7101 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 63.91 kB / 0.8689 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7864/0.7881, allocations: 151.6 MB / 1.017 GB, free: 2.648 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02775/0.8159, allocations: 29.13 MB / 1.045 GB, free: 5.41 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01093/0.8269, allocations: 6.837 MB / 1.052 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.829, allocations: 43.69 kB / 1.052 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002272/0.8313, allocations: 0.6105 MB / 1.053 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004899/0.8363, allocations: 1.365 MB / 1.054 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003218/0.8395, allocations: 1.042 MB / 1.055 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.003613/0.8431, allocations: 2.5 MB / 1.057 GB, free: 8.98 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.8447, allocations: 0.8042 MB / 1.058 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.8469, allocations: 1.031 MB / 1.059 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.8484, allocations: 0.8403 MB / 1.06 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002829/0.8487, allocations: 68 kB / 1.06 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002101/0.8509, allocations: 0.8303 MB / 1.061 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004567/0.8513, allocations: 290.8 kB / 1.061 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.8523, allocations: 0.5514 MB / 1.062 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003143/0.8555, allocations: 1.596 MB / 1.063 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.8555, allocations: 4 kB / 1.063 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.966e-06/0.8555, allocations: 0 / 1.063 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.757e-05/0.8556, allocations: 3.938 kB / 1.063 GB, free: 2.941 MB / 0.8106 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.004128/0.8597, allocations: 1.566 MB / 1.065 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.8598, allocations: 12.03 kB / 1.065 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002574/0.8601, allocations: 122.6 kB / 1.065 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003776/0.8639, allocations: 0.5806 MB / 1.066 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001924/0.8658, allocations: 0.8056 MB / 1.066 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.067e-05/0.8659, allocations: 62.11 kB / 1.066 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/0.8661, allocations: 72 kB / 1.066 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002786/0.8689, allocations: 1.103 MB / 1.068 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.8689, allocations: 0 / 1.068 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.272e-05/0.869, allocations: 36 kB / 1.068 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.869, allocations: 16 kB / 1.068 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/0.8721, allocations: 1 MB / 1.069 GB, free: 13.37 MB / 0.8262 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.006325/0.8785, allocations: 4.939 MB / 1.073 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/0.8813, allocations: 0.9029 MB / 1.074 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.8827, allocations: 484.3 kB / 1.075 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001438/0.8842, allocations: 1.592 MB / 1.076 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001644/0.8858, allocations: 0.5768 MB / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 4.739e-06/0.8859, allocations: 0 / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.004824/0.8907, allocations: 1.485 MB / 1.078 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.8908, allocations: 63.95 kB / 1.078 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.8924, allocations: 1.112 MB / 1.079 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/0.8925, allocations: 41.7 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004496/0.893, allocations: 0.5511 MB / 1.08 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/0.8932, allocations: 209.2 kB / 1.08 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002953/0.8935, allocations: 162.5 kB / 1.08 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.8936, allocations: 334 kB / 1.081 GB, free: 232 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.895, allocations: 445.6 kB / 1.081 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.8967, allocations: 0.7203 MB / 1.082 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/0.8997, allocations: 1.117 MB / 1.083 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.8998, allocations: 0 / 1.083 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00389/0.9037, allocations: 1.278 MB / 1.084 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.9037, allocations: 8 kB / 1.084 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.9037, allocations: 8 kB / 1.084 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.563e-05/0.9038, allocations: 12 kB / 1.084 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.905, allocations: 276.2 kB / 1.084 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.423e-05/0.905, allocations: 19.92 kB / 1.084 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/0.9066, allocations: 198.9 kB / 1.085 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.9067, allocations: 47.92 kB / 1.085 GB, free: 11.88 MB / 0.8419 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.0006192/0.9073, allocations: 291.8 kB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003788/0.9077, allocations: 118.5 kB / 1.085 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004022/0.9118, allocations: 1.367 MB / 1.086 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.321e-05/0.9118, allocations: 11.98 kB / 1.086 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.9118, allocations: 0 / 1.086 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.9118, allocations: 7.984 kB / 1.086 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0053/0.9171, allocations: 2.374 MB / 1.089 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.9172, allocations: 0 / 1.089 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.9182, allocations: 187.9 kB / 1.089 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-05/0.9182, allocations: 4 kB / 1.089 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-05/0.9183, allocations: 23.97 kB / 1.089 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.9183, allocations: 4 kB / 1.089 GB, free: 7.414 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.9183, allocations: 15.88 kB / 1.089 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005178/0.9235, allocations: 1.969 MB / 1.091 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005895/0.9241, allocations: 275.3 kB / 1.091 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.9244, allocations: 16 kB / 1.091 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.9255, allocations: 119.8 kB / 1.091 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.9257, allocations: 60.38 kB / 1.091 GB, free: 4.914 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-05/0.9258, allocations: 31.97 kB / 1.091 GB, free: 4.883 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001142/0.9269, allocations: 0.7677 MB / 1.092 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9269, allocations: 0 / 1.092 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001434/0.9284, allocations: 339.6 kB / 1.092 GB, free: 3.777 MB / 0.8419 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.007907/0.9363, allocations: 3.077 MB / 1.096 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00387/0.9402, allocations: 1.181 MB / 1.097 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.9402, allocations: 0 / 1.097 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.9418, allocations: 0.5814 MB / 1.097 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/0.9443, allocations: 462 kB / 1.098 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/0.9653, allocations: 10.53 MB / 1.108 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/0.9662, allocations: 1.104 MB / 1.109 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001238/0.9675, allocations: 244.6 kB / 1.109 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007218/0.9682, allocations: 471.2 kB / 1.11 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of SimCode: time 1.372e-06/0.9682, allocations: 4 kB / 1.11 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0681/1.036, allocations: 30.05 MB / 1.139 GB, free: 4.059 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/1.037, allocations: 260.9 kB / 1.139 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.681/3.718, allocations: 0 / 1.139 GB, free: 3.797 MB / 0.8887 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)