Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.44/1.44, allocations: 287.4 MB / 302.6 MB, free: 8.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008535/0.0008534, allocations: 190 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 205.4 MB / 0.6298 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006499/0.0006499, allocations: 100.6 kB / 0.7431 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.0003169, allocations: 16.09 kB / 0.8662 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1483, allocations: 115.3 MB / 0.9787 GB, free: 28.13 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04461/0.1929, allocations: 61.83 MB / 1.039 GB, free: 14.13 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.02141/0.2144, allocations: 18.17 MB / 1.057 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.2161, allocations: 75.5 kB / 1.057 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.002023/0.2181, allocations: 0.827 MB / 1.058 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.004157/0.2223, allocations: 2.101 MB / 1.06 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.006128/0.2284, allocations: 2.774 MB / 1.062 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.005741/0.2342, allocations: 6.05 MB / 1.068 GB, free: 104 kB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3091/0.5433, allocations: 1.545 MB / 1.07 GB, free: 20.6 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00292/0.5462, allocations: 1.677 MB / 1.072 GB, free: 20.6 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001612/0.5478, allocations: 1.376 MB / 1.073 GB, free: 20.59 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002132/0.5481, allocations: 75.34 kB / 1.073 GB, free: 20.59 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003099/0.5512, allocations: 1.572 MB / 1.074 GB, free: 20.59 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004726/0.5517, allocations: 432.4 kB / 1.075 GB, free: 20.59 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0004729/0.5521, allocations: 447.6 kB / 1.075 GB, free: 20.55 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.003244/0.5554, allocations: 2.744 MB / 1.078 GB, free: 20.44 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.5554, allocations: 0.7812 kB / 1.078 GB, free: 20.44 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5554, allocations: 0 / 1.078 GB, free: 20.44 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.03e-05/0.5555, allocations: 0 / 1.078 GB, free: 20.44 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.003688/0.5591, allocations: 2.338 MB / 1.08 GB, free: 19.13 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.5592, allocations: 10.55 kB / 1.08 GB, free: 19.13 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002017/0.5594, allocations: 185.5 kB / 1.08 GB, free: 19.09 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/0.5606, allocations: 388.1 kB / 1.081 GB, free: 18.96 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002659/0.5633, allocations: 1.807 MB / 1.083 GB, free: 18.47 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003526/0.5636, allocations: 166.8 kB / 1.083 GB, free: 18.46 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.5638, allocations: 132.2 kB / 1.083 GB, free: 18.46 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.5662, allocations: 1.463 MB / 1.084 GB, free: 18.2 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.5662, allocations: 12.09 kB / 1.084 GB, free: 18.19 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.5663, allocations: 53.34 kB / 1.084 GB, free: 18.19 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.5664, allocations: 37.3 kB / 1.084 GB, free: 18.19 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/0.5685, allocations: 1.137 MB / 1.086 GB, free: 18.16 MB / 0.6823 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.007148/0.5757, allocations: 7.38 MB / 1.093 GB, free: 13.95 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002024/0.5777, allocations: 1.366 MB / 1.094 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008441/0.5785, allocations: 465 kB / 1.095 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003336/0.5819, allocations: 2.603 MB / 1.097 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009435/0.5828, allocations: 0.5012 MB / 1.098 GB, free: 11.87 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003678/0.5832, allocations: 86.31 kB / 1.098 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 2.204e-06/0.5832, allocations: 0 / 1.098 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.002655/0.5859, allocations: 1.286 MB / 1.099 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.586, allocations: 194.3 kB / 1.099 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.5878, allocations: 1.505 MB / 1.101 GB, free: 11.17 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.5879, allocations: 45.17 kB / 1.101 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005671/0.5884, allocations: 0.9004 MB / 1.101 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.5886, allocations: 225.4 kB / 1.102 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.26e-05/0.5886, allocations: 19.91 kB / 1.102 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.916e-05/0.5887, allocations: 344.4 kB / 1.102 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007927/0.5895, allocations: 392.9 kB / 1.102 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009067/0.5904, allocations: 0.7655 MB / 1.103 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.592, allocations: 1.122 MB / 1.104 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.592, allocations: 2.781 kB / 1.104 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002138/0.5942, allocations: 1.321 MB / 1.106 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.5943, allocations: 405.1 kB / 1.106 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.5943, allocations: 20.25 kB / 1.106 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.5944, allocations: 17.22 kB / 1.106 GB, free: 8.844 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008522/0.5952, allocations: 256.4 kB / 1.106 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.5953, allocations: 19.98 kB / 1.106 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.5964, allocations: 144.3 kB / 1.106 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.5965, allocations: 48.94 kB / 1.106 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.27e-06/0.5965, allocations: 4.812 kB / 1.106 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001991/0.5985, allocations: 1.152 MB / 1.108 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.5985, allocations: 10.16 kB / 1.108 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.5985, allocations: 15.95 kB / 1.108 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008371/0.5994, allocations: 258.8 kB / 1.108 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.5994, allocations: 21.95 kB / 1.108 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009577/0.6003, allocations: 135 kB / 1.108 GB, free: 8.75 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/0.6004, allocations: 51.41 kB / 1.108 GB, free: 8.75 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0006431/0.6011, allocations: 0.4966 MB / 1.108 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.6012, allocations: 166.3 kB / 1.109 GB, free: 8.465 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.6033, allocations: 1.102 MB / 1.11 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.6033, allocations: 21.36 kB / 1.11 GB, free: 8.355 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.6034, allocations: 0 / 1.11 GB, free: 8.355 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001457/0.6048, allocations: 0.8246 MB / 1.111 GB, free: 8.262 MB / 0.6823 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 postOpt removeSimpleEquations (simulation): time 0.003541/0.6084, allocations: 2.707 MB / 1.113 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.6084, allocations: 2.125 kB / 1.113 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006534/0.609, allocations: 161.7 kB / 1.113 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001434/0.6092, allocations: 38.16 kB / 1.113 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/0.6093, allocations: 26.67 kB / 1.113 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009386/0.6102, allocations: 1.379 MB / 1.115 GB, free: 22.39 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6102, allocations: 2.688 kB / 1.115 GB, free: 22.39 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/0.6129, allocations: 1.643 MB / 1.116 GB, free: 22.05 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004807/0.6134, allocations: 366.6 kB / 1.117 GB, free: 21.86 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002571/0.6136, allocations: 22.3 kB / 1.117 GB, free: 21.86 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009499/0.6146, allocations: 120.5 kB / 1.117 GB, free: 21.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.6147, allocations: 66.8 kB / 1.117 GB, free: 21.83 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/0.6148, allocations: 35.33 kB / 1.117 GB, free: 21.83 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001281/0.616, allocations: 1.082 MB / 1.118 GB, free: 21.69 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6161, allocations: 0 / 1.118 GB, free: 21.69 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002567/0.6186, allocations: 0.9891 MB / 1.119 GB, free: 21.55 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003987/0.6226, allocations: 2.624 MB / 1.122 GB, free: 20.59 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002982/0.6256, allocations: 1.714 MB / 1.123 GB, free: 20.36 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6256, allocations: 2 kB / 1.123 GB, free: 20.36 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.6267, allocations: 0.5725 MB / 1.124 GB, free: 20.23 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003788/0.6305, allocations: 0.8615 MB / 1.125 GB, free: 20.16 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/0.6471, allocations: 11.09 MB / 1.135 GB, free: 15.53 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007692/0.6479, allocations: 1.414 MB / 1.137 GB, free: 14.78 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001717/0.6496, allocations: 436.5 kB / 1.137 GB, free: 14.66 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/0.6504, allocations: 0.7398 MB / 1.138 GB, free: 14.64 MB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/0.6504, allocations: 0 / 1.138 GB, free: 14.64 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4606/1.111, allocations: 51.16 MB / 1.188 GB, free: 3.395 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/1.111, allocations: 257.8 kB / 1.188 GB, free: 3.055 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.837/4.948, allocations: 0 / 1.188 GB, free: 3.055 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)