Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_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.001715/0.001715, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002087/0.002087, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.767/2.767, allocations: 461.9 MB / 0.7346 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 65.5 kB / 0.8992 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2865, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03451/0.321, allocations: 29.34 MB / 1.082 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01046/0.3315, allocations: 6.882 MB / 1.088 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.3329, allocations: 51.62 kB / 1.088 GB, free: 3.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.3347, allocations: 0.6875 MB / 1.089 GB, free: 3.238 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004448/0.3392, allocations: 1.45 MB / 1.09 GB, free: 1.781 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002913/0.3421, allocations: 1.159 MB / 1.092 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003617/0.3458, allocations: 2.469 MB / 1.094 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.3472, allocations: 0.7945 MB / 1.095 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.3494, allocations: 1.012 MB / 1.096 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001528/0.3509, allocations: 0.8169 MB / 1.096 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002838/0.3512, allocations: 64 kB / 1.097 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.3531, allocations: 0.8149 MB / 1.097 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003338/0.3535, allocations: 271 kB / 1.098 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007886/0.3543, allocations: 0.5514 MB / 1.098 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002591/0.3569, allocations: 1.589 MB / 1.1 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3569, allocations: 4 kB / 1.1 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3569, allocations: 0 / 1.1 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.324e-05/0.357, allocations: 4 kB / 1.1 GB, free: 8.207 MB / 0.8575 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.00276/0.3597, allocations: 1.568 MB / 1.101 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3598, allocations: 12.62 kB / 1.101 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/0.3599, allocations: 114.7 kB / 1.101 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003551/0.3635, allocations: 0.5884 MB / 1.102 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.3649, allocations: 0.8017 MB / 1.103 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.811e-05/0.3649, allocations: 58.12 kB / 1.103 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.3651, allocations: 76 kB / 1.103 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.3674, allocations: 1.096 MB / 1.104 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.3675, allocations: 3.938 kB / 1.104 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-05/0.3676, allocations: 31.98 kB / 1.104 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.3676, allocations: 20 kB / 1.104 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003211/0.3708, allocations: 1 MB / 1.105 GB, free: 2.641 MB / 0.8575 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.00598/0.3768, allocations: 4.963 MB / 1.11 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004433/0.3812, allocations: 0.8996 MB / 1.111 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.3833, allocations: 490.1 kB / 1.111 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001833/0.3852, allocations: 1.592 MB / 1.113 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002203/0.3874, allocations: 0.5728 MB / 1.113 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=61): time 5.219e-06/0.3874, allocations: 0 / 1.113 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of matching and sorting (n=61): time 0.006351/0.3938, allocations: 1.489 MB / 1.115 GB, free: 7.984 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.3939, allocations: 59.97 kB / 1.115 GB, free: 7.914 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.3953, allocations: 1.112 MB / 1.116 GB, free: 6.789 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.659e-05/0.3954, allocations: 45.69 kB / 1.116 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004244/0.3958, allocations: 0.5356 MB / 1.116 GB, free: 6.195 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.396, allocations: 213.1 kB / 1.117 GB, free: 5.984 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000282/0.3963, allocations: 170.4 kB / 1.117 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3964, allocations: 337.9 kB / 1.117 GB, free: 5.477 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.3979, allocations: 445.6 kB / 1.118 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.3996, allocations: 0.7164 MB / 1.118 GB, free: 4.207 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003077/0.4027, allocations: 1.124 MB / 1.119 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.4028, allocations: 4 kB / 1.119 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003686/0.4064, allocations: 1.27 MB / 1.121 GB, free: 1.691 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.4065, allocations: 10.03 kB / 1.121 GB, free: 1.684 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.4065, allocations: 8 kB / 1.121 GB, free: 1.676 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.4065, allocations: 16 kB / 1.121 GB, free: 1.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.4078, allocations: 271.6 kB / 1.121 GB, free: 1.395 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.4078, allocations: 15.94 kB / 1.121 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.409, allocations: 182.9 kB / 1.121 GB, free: 1.199 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-05/0.4091, allocations: 47.97 kB / 1.121 GB, free: 1.152 MB / 0.8731 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.0005277/0.4097, allocations: 287.8 kB / 1.121 GB, free: 0.8633 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.4099, allocations: 130.4 kB / 1.122 GB, free: 0.7344 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003882/0.4138, allocations: 1.355 MB / 1.123 GB, free: 15.37 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.4138, allocations: 8 kB / 1.123 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.4138, allocations: 0 / 1.123 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.4138, allocations: 3.984 kB / 1.123 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005019/0.4189, allocations: 2.374 MB / 1.125 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.4189, allocations: 4.188 kB / 1.125 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.4199, allocations: 183.8 kB / 1.125 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.42, allocations: 4 kB / 1.125 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.42, allocations: 27.91 kB / 1.125 GB, free: 12.7 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.42, allocations: 4 kB / 1.125 GB, free: 12.7 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.42, allocations: 7.938 kB / 1.125 GB, free: 12.69 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005295/0.4253, allocations: 1.973 MB / 1.127 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004863/0.4258, allocations: 275.4 kB / 1.128 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.426, allocations: 23.97 kB / 1.128 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009404/0.427, allocations: 103.9 kB / 1.128 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.4271, allocations: 52.53 kB / 1.128 GB, free: 10.21 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.663e-05/0.4272, allocations: 35.91 kB / 1.128 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009021/0.4281, allocations: 0.7638 MB / 1.129 GB, free: 9.406 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4281, allocations: 0 / 1.129 GB, free: 9.406 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001118/0.4292, allocations: 347.5 kB / 1.129 GB, free: 9.066 MB / 0.8887 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.006916/0.4361, allocations: 3.085 MB / 1.132 GB, free: 6.105 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.004059/0.4402, allocations: 1.181 MB / 1.133 GB, free: 4.922 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.4403, allocations: 0 / 1.133 GB, free: 4.922 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.442, allocations: 0.5736 MB / 1.134 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.4443, allocations: 451.4 kB / 1.134 GB, free: 3.918 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0201/0.4644, allocations: 10.21 MB / 1.144 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007922/0.4652, allocations: 1.111 MB / 1.145 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001076/0.4663, allocations: 244.6 kB / 1.145 GB, free: 7.746 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006492/0.467, allocations: 463.2 kB / 1.146 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of SimCode: time 6.81e-07/0.467, allocations: 0 / 1.146 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06066/0.5277, allocations: 30.33 MB / 1.175 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.424/8.952, allocations: 7.938 kB / 1.175 GB, free: 9.34 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)