Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_8_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.001157/0.001158, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.00138/0.001381, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.814/1.814, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007784/0.0007785, allocations: 17.53 kB / 0.6737 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2966, allocations: 116.3 MB / 0.7872 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03858/0.3352, allocations: 24.6 MB / 0.8112 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01363/0.3489, allocations: 5.819 MB / 0.8169 GB, free: 13.37 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.3508, allocations: 39.69 kB / 0.817 GB, free: 13.33 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.3534, allocations: 0.6458 MB / 0.8176 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006082/0.3595, allocations: 1.184 MB / 0.8188 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005862/0.3654, allocations: 1.323 MB / 0.82 GB, free: 10.19 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004923/0.3704, allocations: 1.552 MB / 0.8216 GB, free: 8.633 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001672/0.3721, allocations: 0.6701 MB / 0.8222 GB, free: 7.949 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.3746, allocations: 0.8447 MB / 0.823 GB, free: 7.102 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001205/0.3758, allocations: 0.5718 MB / 0.8236 GB, free: 6.527 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.376, allocations: 36 kB / 0.8236 GB, free: 6.492 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.3784, allocations: 0.5383 MB / 0.8242 GB, free: 5.953 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003972/0.3788, allocations: 235.1 kB / 0.8244 GB, free: 5.723 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0005591/0.3794, allocations: 233 kB / 0.8246 GB, free: 5.488 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.00249/0.3819, allocations: 1.009 MB / 0.8256 GB, free: 4.477 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3819, allocations: 0 / 0.8256 GB, free: 4.477 MB / 0.6387 GB Notification: Performance of FrontEnd: time 4.97e-06/0.3819, allocations: 7.938 kB / 0.8256 GB, free: 4.469 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.834e-05/0.382, allocations: 0 / 0.8256 GB, free: 4.469 MB / 0.6387 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.004152/0.3861, allocations: 1.384 MB / 0.8269 GB, free: 3.031 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 6.626e-05/0.3862, allocations: 12.03 kB / 0.827 GB, free: 3.02 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/0.3865, allocations: 118.4 kB / 0.8271 GB, free: 2.895 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005196/0.3917, allocations: 0.6383 MB / 0.8277 GB, free: 2.254 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.394, allocations: 0.7665 MB / 0.8284 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.751e-05/0.3941, allocations: 54 kB / 0.8285 GB, free: 1.379 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002024/0.3944, allocations: 79.98 kB / 0.8286 GB, free: 1.301 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003627/0.398, allocations: 1.103 MB / 0.8297 GB, free: 124 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.398, allocations: 0 / 0.8297 GB, free: 124 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.3982, allocations: 32 kB / 0.8297 GB, free: 92 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.3982, allocations: 20 kB / 0.8297 GB, free: 72 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004192/0.4024, allocations: 1.02 MB / 0.8307 GB, free: 15.04 MB / 0.6544 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.009667/0.4121, allocations: 4.967 MB / 0.8355 GB, free: 9.785 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004581/0.4167, allocations: 0.9574 MB / 0.8365 GB, free: 8.82 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00221/0.4189, allocations: 1.596 MB / 0.838 GB, free: 6.875 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002624/0.4216, allocations: 0.5807 MB / 0.8386 GB, free: 6.285 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=61): time 5.41e-06/0.4216, allocations: 4 kB / 0.8386 GB, free: 6.281 MB / 0.6544 GB Notification: Performance of matching and sorting (n=61): time 0.007413/0.429, allocations: 1.52 MB / 0.8401 GB, free: 4.754 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.4292, allocations: 55.97 kB / 0.8401 GB, free: 4.688 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.4314, allocations: 1.117 MB / 0.8412 GB, free: 3.559 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.4316, allocations: 41.69 kB / 0.8413 GB, free: 3.512 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007024/0.4323, allocations: 0.5513 MB / 0.8418 GB, free: 2.953 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000321/0.4327, allocations: 213 kB / 0.842 GB, free: 2.742 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-05/0.4327, allocations: 16 kB / 0.842 GB, free: 2.727 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002175/0.433, allocations: 333.9 kB / 0.8424 GB, free: 2.395 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/0.4351, allocations: 461.6 kB / 0.8428 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/0.4376, allocations: 0.7474 MB / 0.8435 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/0.4399, allocations: 0.49 MB / 0.844 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.4399, allocations: 7.938 kB / 0.844 GB, free: 0.5703 MB / 0.6544 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005511/0.4455, allocations: 1.286 MB / 0.8453 GB, free: 15.27 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.4455, allocations: 8 kB / 0.8453 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.4456, allocations: 11.95 kB / 0.8453 GB, free: 15.25 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.991e-05/0.4456, allocations: 16 kB / 0.8453 GB, free: 15.24 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.4474, allocations: 276 kB / 0.8456 GB, free: 14.97 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.914e-05/0.4474, allocations: 19.92 kB / 0.8456 GB, free: 14.95 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/0.4497, allocations: 207 kB / 0.8458 GB, free: 14.75 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.4499, allocations: 47.97 kB / 0.8458 GB, free: 14.7 MB / 0.67 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 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008451/0.4507, allocations: 295.7 kB / 0.8461 GB, free: 14.4 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/0.4511, allocations: 118.5 kB / 0.8462 GB, free: 14.29 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005983/0.4571, allocations: 1.394 MB / 0.8476 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.061e-05/0.4572, allocations: 7.953 kB / 0.8476 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.4572, allocations: 4 kB / 0.8476 GB, free: 12.87 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/0.4572, allocations: 3.984 kB / 0.8476 GB, free: 12.87 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008658/0.4659, allocations: 2.39 MB / 0.8499 GB, free: 10.41 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.729e-05/0.466, allocations: 4.188 kB / 0.8499 GB, free: 10.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.4676, allocations: 199.7 kB / 0.8501 GB, free: 10.21 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.802e-05/0.4676, allocations: 4 kB / 0.8501 GB, free: 10.2 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.4677, allocations: 23.97 kB / 0.8502 GB, free: 10.18 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-05/0.4678, allocations: 4 kB / 0.8502 GB, free: 10.18 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.897e-05/0.4678, allocations: 4 kB / 0.8502 GB, free: 10.17 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007941/0.4757, allocations: 2.082 MB / 0.8522 GB, free: 8.023 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4768, allocations: 295.3 kB / 0.8525 GB, free: 7.715 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/0.4771, allocations: 19.94 kB / 0.8525 GB, free: 7.695 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.4786, allocations: 123.9 kB / 0.8526 GB, free: 7.574 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.4788, allocations: 52.45 kB / 0.8527 GB, free: 7.523 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.479, allocations: 39.91 kB / 0.8527 GB, free: 7.484 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001791/0.4808, allocations: 0.7603 MB / 0.8534 GB, free: 6.719 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.51e-07/0.4808, allocations: 0 / 0.8534 GB, free: 6.719 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002148/0.4829, allocations: 343.5 kB / 0.8538 GB, free: 6.383 MB / 0.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01185/0.4948, allocations: 3.569 MB / 0.8573 GB, free: 2.914 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00531/0.5002, allocations: 1.13 MB / 0.8584 GB, free: 1.781 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.5002, allocations: 4 kB / 0.8584 GB, free: 1.777 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002587/0.5028, allocations: 0.5814 MB / 0.8589 GB, free: 1.199 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/0.5064, allocations: 446.1 kB / 0.8594 GB, free: 0.7695 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/0.5327, allocations: 12.58 MB / 0.8716 GB, free: 3.73 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.5339, allocations: 1.133 MB / 0.8727 GB, free: 2.566 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001886/0.5358, allocations: 252.8 kB / 0.873 GB, free: 2.316 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/0.5369, allocations: 463.2 kB / 0.8734 GB, free: 1.863 MB / 0.6856 GB Notification: Performance of SimCode: time 1.402e-06/0.5369, allocations: 0 / 0.8734 GB, free: 1.863 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08693/0.6238, allocations: 29.62 MB / 0.9023 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002732/0.6241, allocations: 238 kB / 0.9026 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.049/3.673, allocations: 0 / 0.9026 GB, free: 4.43 MB / 0.7169 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) Environment - environmentSimulation: