Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.653/1.653, allocations: 288.2 MB / 303.2 MB, free: 8.172 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.001035/0.001035, allocations: 173.6 kB / 371.8 MB, free: 10.3 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.783/1.783, allocations: 205.4 MB / 0.6305 GB, free: 10.01 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.0008702/0.0008702, allocations: 101.2 kB / 0.7439 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004139/0.0004139, allocations: 23.64 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2346, allocations: 115.3 MB / 0.9795 GB, free: 27.63 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04023/0.2749, allocations: 44.86 MB / 1.023 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02556/0.3005, allocations: 15.62 MB / 1.039 GB, free: 15.02 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003207/0.3038, allocations: 71.5 kB / 1.039 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.004327/0.3081, allocations: 0.9677 MB / 1.04 GB, free: 13.98 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.009004/0.3172, allocations: 2.324 MB / 1.042 GB, free: 11.65 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.009614/0.3268, allocations: 2.999 MB / 1.045 GB, free: 8.68 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.007315/0.3341, allocations: 2.767 MB / 1.047 GB, free: 5.906 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003549/0.3377, allocations: 1.245 MB / 1.049 GB, free: 4.633 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003953/0.3417, allocations: 1.374 MB / 1.05 GB, free: 3.254 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.3439, allocations: 0.9098 MB / 1.051 GB, free: 2.34 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0003586/0.3443, allocations: 68 kB / 1.051 GB, free: 2.273 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.3484, allocations: 1.369 MB / 1.052 GB, free: 0.9023 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.00069/0.3492, allocations: 398.4 kB / 1.053 GB, free: 0.5117 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0009344/0.3501, allocations: 404.6 kB / 1.053 GB, free: 112 kB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.004785/0.3549, allocations: 2.443 MB / 1.055 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3549, allocations: 0 / 1.055 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.174e-06/0.355, allocations: 3.938 kB / 1.055 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.366e-05/0.355, allocations: 0 / 1.055 GB, free: 13.66 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.005001/0.36, allocations: 2.225 MB / 1.058 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.3601, allocations: 12.03 kB / 1.058 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003443/0.3605, allocations: 169 kB / 1.058 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002226/0.3627, allocations: 485 kB / 1.058 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003673/0.3664, allocations: 1.536 MB / 1.06 GB, free: 9.113 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004235/0.3668, allocations: 158.2 kB / 1.06 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/0.3671, allocations: 124 kB / 1.06 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002798/0.3699, allocations: 1.376 MB / 1.061 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/0.3699, allocations: 0 / 1.061 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/0.37, allocations: 48 kB / 1.061 GB, free: 7.312 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-05/0.3701, allocations: 31.98 kB / 1.061 GB, free: 7.281 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002782/0.3729, allocations: 1.121 MB / 1.063 GB, free: 6.152 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.5083/0.8812, allocations: 7.144 MB / 1.07 GB, free: 86.19 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.884, allocations: 1.413 MB / 1.071 GB, free: 85.6 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004966/0.889, allocations: 3.087 MB / 1.074 GB, free: 83.43 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.8903, allocations: 457.1 kB / 1.074 GB, free: 83.28 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007068/0.891, allocations: 90.39 kB / 1.074 GB, free: 83.27 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=61): time 5.05e-06/0.891, allocations: 0 / 1.074 GB, free: 83.27 MB / 0.6823 GB Notification: Performance of matching and sorting (n=61): time 0.003717/0.8948, allocations: 1.285 MB / 1.076 GB, free: 82.86 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.8948, allocations: 141.4 kB / 1.076 GB, free: 82.71 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002783/0.8976, allocations: 1.599 MB / 1.077 GB, free: 82.11 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.11e-05/0.8977, allocations: 43.48 kB / 1.077 GB, free: 82.07 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007654/0.8985, allocations: 0.8926 MB / 1.078 GB, free: 81.43 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.8987, allocations: 218.1 kB / 1.079 GB, free: 81.26 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.131e-05/0.8987, allocations: 20.22 kB / 1.079 GB, free: 81.25 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.8989, allocations: 343.5 kB / 1.079 GB, free: 80.93 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.8999, allocations: 390.5 kB / 1.079 GB, free: 80.82 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.9011, allocations: 0.788 MB / 1.08 GB, free: 80.2 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.9023, allocations: 0.5019 MB / 1.08 GB, free: 80.01 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.9023, allocations: 3 kB / 1.08 GB, free: 80.01 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003419/0.9058, allocations: 1.335 MB / 1.082 GB, free: 79.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008005/0.9066, allocations: 4.368 MB / 1.086 GB, free: 74.85 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.9066, allocations: 16.38 kB / 1.086 GB, free: 74.85 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.306e-05/0.9067, allocations: 18 kB / 1.086 GB, free: 74.85 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.9078, allocations: 269.3 kB / 1.086 GB, free: 74.83 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.6e-05/0.9079, allocations: 22.25 kB / 1.086 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.9094, allocations: 136.2 kB / 1.086 GB, free: 74.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.9096, allocations: 64.53 kB / 1.087 GB, free: 74.79 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.447e-06/0.9096, allocations: 6.844 kB / 1.087 GB, free: 74.79 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00294/0.9126, allocations: 1.158 MB / 1.088 GB, free: 74.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/0.9126, allocations: 13.53 kB / 1.088 GB, free: 74.38 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.9126, allocations: 19.47 kB / 1.088 GB, free: 74.38 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.9137, allocations: 266.5 kB / 1.088 GB, free: 74.35 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.921e-05/0.9138, allocations: 26.08 kB / 1.088 GB, free: 74.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.9152, allocations: 125.1 kB / 1.088 GB, free: 74.32 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.9153, allocations: 54.56 kB / 1.088 GB, free: 74.31 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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.001118/0.9164, allocations: 488.5 kB / 1.089 GB, free: 73.96 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.9167, allocations: 171.7 kB / 1.089 GB, free: 73.87 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002814/0.9195, allocations: 1.163 MB / 1.09 GB, free: 73.46 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.9196, allocations: 8.188 kB / 1.09 GB, free: 73.46 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.9196, allocations: 2.109 kB / 1.09 GB, free: 73.46 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00202/0.9216, allocations: 0.9949 MB / 1.091 GB, free: 72.95 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.005167/0.9268, allocations: 2.48 MB / 1.093 GB, free: 71.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.9268, allocations: 2.078 kB / 1.093 GB, free: 71.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007849/0.9276, allocations: 151.8 kB / 1.093 GB, free: 71.79 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002171/0.9278, allocations: 38.77 kB / 1.094 GB, free: 71.77 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.9279, allocations: 24.47 kB / 1.094 GB, free: 71.76 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.929, allocations: 1.382 MB / 1.095 GB, free: 70.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.929, allocations: 0 / 1.095 GB, free: 70.4 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003476/0.9325, allocations: 1.639 MB / 1.097 GB, free: 69.64 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007652/0.9332, allocations: 360.7 kB / 1.097 GB, free: 69.39 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002553/0.9335, allocations: 22.58 kB / 1.097 GB, free: 69.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.9345, allocations: 122.9 kB / 1.097 GB, free: 69.34 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.9347, allocations: 55.75 kB / 1.097 GB, free: 69.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.466e-05/0.9347, allocations: 29.55 kB / 1.097 GB, free: 69.33 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001756/0.9365, allocations: 1.138 MB / 1.098 GB, free: 68.87 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9365, allocations: 3.75 kB / 1.098 GB, free: 68.87 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003177/0.9397, allocations: 0.94 MB / 1.099 GB, free: 68.71 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.005191/0.9449, allocations: 2.973 MB / 1.102 GB, free: 67.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004052/0.949, allocations: 1.709 MB / 1.104 GB, free: 66.55 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.949, allocations: 4.906 kB / 1.104 GB, free: 66.54 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.9503, allocations: 0.5705 MB / 1.104 GB, free: 66.29 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003852/0.9542, allocations: 0.7391 MB / 1.105 GB, free: 66.09 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008786/0.963, allocations: 12.31 MB / 1.117 GB, free: 55.57 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008923/0.9639, allocations: 1.406 MB / 1.118 GB, free: 54.8 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.00203/0.966, allocations: 432.1 kB / 1.119 GB, free: 54.67 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008086/0.9668, allocations: 0.7205 MB / 1.119 GB, free: 54.13 MB / 0.6823 GB Notification: Performance of SimCode: time 9.52e-07/0.9668, allocations: 1.281 kB / 1.119 GB, free: 54.13 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07659/1.043, allocations: 47.22 MB / 1.166 GB, free: 16.09 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/1.044, allocations: 251.4 kB / 1.166 GB, free: 15.76 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.734/4.778, allocations: 0 / 1.166 GB, free: 15.76 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)