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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001173/0.001173, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001314/0.001313, allocations: 192 kB / 16.14 MB, free: 6.719 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.365/1.365, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.439/2.439, allocations: 437 MB / 0.7099 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.91 kB / 0.8686 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5947/0.5961, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02829/0.6244, allocations: 29.19 MB / 1.045 GB, free: 5.512 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01029/0.6348, allocations: 6.903 MB / 1.052 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.6362, allocations: 43.69 kB / 1.052 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.638, allocations: 0.6066 MB / 1.053 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.003631/0.6417, allocations: 1.342 MB / 1.054 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002797/0.6445, allocations: 1.042 MB / 1.055 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.003605/0.6481, allocations: 3.214 MB / 1.058 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.6493, allocations: 0.7253 MB / 1.059 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.6509, allocations: 0.9373 MB / 1.06 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009449/0.6518, allocations: 0.8286 MB / 1.06 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.805e-05/0.652, allocations: 44 kB / 1.061 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001743/0.6537, allocations: 0.7638 MB / 1.061 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002795/0.654, allocations: 258.9 kB / 1.062 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.6545, allocations: 0.5281 MB / 1.062 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001839/0.6564, allocations: 1.565 MB / 1.064 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.6564, allocations: 11.94 kB / 1.064 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.61e-07/0.6564, allocations: 0 / 1.064 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.111e-05/0.6564, allocations: 0 / 1.064 GB, free: 2.645 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.002446/0.6589, allocations: 1.559 MB / 1.065 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.6589, allocations: 19.97 kB / 1.065 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.6591, allocations: 114.7 kB / 1.065 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003377/0.6624, allocations: 0.5845 MB / 1.066 GB, free: 312 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.6636, allocations: 0.8056 MB / 1.067 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.6636, allocations: 62.12 kB / 1.067 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.6638, allocations: 72 kB / 1.067 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002275/0.666, allocations: 1.096 MB / 1.068 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.6661, allocations: 0 / 1.068 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.39e-05/0.6661, allocations: 35.98 kB / 1.068 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.6662, allocations: 23.94 kB / 1.068 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.669, allocations: 1.008 MB / 1.069 GB, free: 13.07 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.005372/0.6744, allocations: 4.935 MB / 1.074 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/0.677, allocations: 0.9016 MB / 1.075 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.6784, allocations: 498.2 kB / 1.075 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001311/0.6797, allocations: 1.591 MB / 1.077 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001533/0.6812, allocations: 0.5729 MB / 1.077 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.926e-06/0.6812, allocations: 0 / 1.077 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.004332/0.6856, allocations: 1.485 MB / 1.079 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.6856, allocations: 59.97 kB / 1.079 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.6868, allocations: 1.112 MB / 1.08 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.606e-05/0.6869, allocations: 37.7 kB / 1.08 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004587/0.6874, allocations: 0.555 MB / 1.08 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.6875, allocations: 201.2 kB / 1.08 GB, free: 440 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/0.6878, allocations: 170.4 kB / 1.081 GB, free: 264 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.688, allocations: 334 kB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.6893, allocations: 453.6 kB / 1.081 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.6909, allocations: 0.7203 MB / 1.082 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/0.6936, allocations: 1.117 MB / 1.083 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.6936, allocations: 0 / 1.083 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003325/0.6969, allocations: 1.274 MB / 1.084 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.014e-05/0.697, allocations: 8 kB / 1.084 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.697, allocations: 8 kB / 1.084 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.6971, allocations: 12 kB / 1.084 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.6982, allocations: 276.2 kB / 1.085 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.6982, allocations: 19.92 kB / 1.085 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.6994, allocations: 198.9 kB / 1.085 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.958e-05/0.6995, allocations: 47.97 kB / 1.085 GB, free: 11.58 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.0004802/0.7, allocations: 287.8 kB / 1.085 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.7002, allocations: 122.4 kB / 1.085 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.7037, allocations: 1.367 MB / 1.087 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.7037, allocations: 11.98 kB / 1.087 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.7037, allocations: 0 / 1.087 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.7037, allocations: 3.984 kB / 1.087 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00467/0.7084, allocations: 2.378 MB / 1.089 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.7084, allocations: 0 / 1.089 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009752/0.7094, allocations: 183.9 kB / 1.089 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.7094, allocations: 4 kB / 1.089 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.175e-05/0.7095, allocations: 23.97 kB / 1.089 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.868e-06/0.7095, allocations: 7.938 kB / 1.089 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.7095, allocations: 11.94 kB / 1.089 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004716/0.7142, allocations: 1.965 MB / 1.091 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000391/0.7146, allocations: 283.3 kB / 1.091 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.7148, allocations: 19.98 kB / 1.091 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009079/0.7157, allocations: 123.8 kB / 1.092 GB, free: 4.66 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.7158, allocations: 52.44 kB / 1.092 GB, free: 4.609 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.197e-05/0.7159, allocations: 35.97 kB / 1.092 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008344/0.7168, allocations: 0.7638 MB / 1.092 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7168, allocations: 0 / 1.092 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009996/0.7178, allocations: 343.6 kB / 1.093 GB, free: 3.469 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.006372/0.7242, allocations: 3.072 MB / 1.096 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003092/0.7273, allocations: 1.114 MB / 1.097 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7273, allocations: 0 / 1.097 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.7288, allocations: 0.5697 MB / 1.097 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.7307, allocations: 433.2 kB / 1.098 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/0.748, allocations: 10.52 MB / 1.108 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.7487, allocations: 1.106 MB / 1.109 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001045/0.7498, allocations: 252.6 kB / 1.109 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006112/0.7504, allocations: 467.2 kB / 1.11 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of SimCode: time 9.42e-07/0.7504, allocations: 4 kB / 1.11 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9146/1.665, allocations: 29.35 MB / 1.139 GB, free: 4.551 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/1.665, allocations: 256.8 kB / 1.139 GB, free: 4.293 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/4.364, allocations: 0 / 1.139 GB, free: 4.293 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)