Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.44/1.44, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001236/0.001236, allocations: 175.5 kB / 326.5 MB, free: 2.273 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.4 MB / 0.5775 GB, free: 20.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000871/0.000871, allocations: 86.38 kB / 0.6821 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003161, allocations: 12.44 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1772, allocations: 106.3 MB / 0.9001 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7953/0.9725, allocations: 447 MB / 1.337 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.9728, allocations: 99.27 kB / 1.337 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.044/5.016, allocations: 1.139 GB / 2.475 GB, free: 131.9 MB / 0.8855 GB Notification: Performance of FrontEnd: time 4.509e-06/5.016, allocations: 0 / 2.475 GB, free: 131.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004687/5.017, allocations: 57.44 kB / 2.475 GB, free: 131.9 MB / 0.8855 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.009671/5.027, allocations: 2.569 MB / 2.478 GB, free: 131 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/5.027, allocations: 11.75 kB / 2.478 GB, free: 131 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006218/5.027, allocations: 167.5 kB / 2.478 GB, free: 131 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002577/5.03, allocations: 457.8 kB / 2.478 GB, free: 130.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007424/5.037, allocations: 2.316 MB / 2.481 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/5.038, allocations: 91.19 kB / 2.481 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000404/5.038, allocations: 126.8 kB / 2.481 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002972/5.041, allocations: 1.311 MB / 2.482 GB, free: 130.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/5.041, allocations: 9.375 kB / 2.482 GB, free: 130.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/5.041, allocations: 50.27 kB / 2.482 GB, free: 130.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.919e-05/5.041, allocations: 28.97 kB / 2.482 GB, free: 130.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002255/5.043, allocations: 0.9629 MB / 2.483 GB, free: 130.2 MB / 0.8855 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.009476/5.053, allocations: 6.879 MB / 2.49 GB, free: 126.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/5.055, allocations: 1.276 MB / 2.491 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004573/5.059, allocations: 2.877 MB / 2.494 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008015/5.06, allocations: 412.5 kB / 2.494 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008282/5.061, allocations: 92.16 kB / 2.494 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=61): time 7.123e-06/5.061, allocations: 0 / 2.494 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=61): time 0.002701/5.064, allocations: 1.131 MB / 2.496 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/5.064, allocations: 161.2 kB / 2.496 GB, free: 123.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002618/5.067, allocations: 1.362 MB / 2.497 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001051/5.067, allocations: 43.45 kB / 2.497 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008767/5.068, allocations: 0.8901 MB / 2.498 GB, free: 122.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/5.068, allocations: 211.3 kB / 2.498 GB, free: 122.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/5.068, allocations: 20.16 kB / 2.498 GB, free: 122.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.578e-05/5.068, allocations: 346 kB / 2.498 GB, free: 122.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007104/5.069, allocations: 324.8 kB / 2.499 GB, free: 122.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009125/5.07, allocations: 0.7663 MB / 2.5 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008893/5.07, allocations: 460.2 kB / 2.5 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/5.07, allocations: 7 kB / 2.5 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002529/5.073, allocations: 1.224 MB / 2.501 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001094/5.074, allocations: 4.554 MB / 2.506 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.876e-05/5.074, allocations: 18.09 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.794e-05/5.074, allocations: 18.97 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009492/5.075, allocations: 243 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.287e-05/5.075, allocations: 24.31 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/5.077, allocations: 117.8 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/5.077, allocations: 61.03 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/5.077, allocations: 6.844 kB / 2.506 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00205/5.079, allocations: 1.046 MB / 2.507 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/5.079, allocations: 11.56 kB / 2.507 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/5.079, allocations: 19.09 kB / 2.507 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008928/5.08, allocations: 251.3 kB / 2.507 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.42e-05/5.08, allocations: 20.84 kB / 2.507 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/5.082, allocations: 109.1 kB / 2.508 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/5.082, allocations: 55.52 kB / 2.508 GB, free: 116.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (122): * Single equations (assignments): 118 * 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.001119/5.083, allocations: 494.1 kB / 2.508 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004809/5.083, allocations: 164.5 kB / 2.508 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002587/5.086, allocations: 1.058 MB / 2.509 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/5.086, allocations: 7.375 kB / 2.509 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/5.086, allocations: 6.969 kB / 2.509 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001486/5.087, allocations: 0.8965 MB / 2.51 GB, free: 115.9 MB / 0.8855 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.004841/5.092, allocations: 2.268 MB / 2.512 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/5.092, allocations: 3.781 kB / 2.512 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006609/5.093, allocations: 130.1 kB / 2.512 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/5.093, allocations: 37.11 kB / 2.513 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.207e-05/5.093, allocations: 20.05 kB / 2.513 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009261/5.094, allocations: 1.312 MB / 2.514 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/5.094, allocations: 3.234 kB / 2.514 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002778/5.097, allocations: 1.482 MB / 2.515 GB, free: 114 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009283/5.098, allocations: 343 kB / 2.516 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004814/5.098, allocations: 17.58 kB / 2.516 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/5.1, allocations: 103.5 kB / 2.516 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/5.1, allocations: 55.75 kB / 2.516 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-05/5.1, allocations: 31.8 kB / 2.516 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002/5.102, allocations: 1.095 MB / 2.517 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.61e-07/5.102, allocations: 0 / 2.517 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004716/5.107, allocations: 1.029 MB / 2.518 GB, free: 113.5 MB / 0.8855 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 (70): * Single equations (assignments): 61 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006933/5.114, allocations: 3.401 MB / 2.521 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003707/5.117, allocations: 1.554 MB / 2.523 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/5.117, allocations: 0 / 2.523 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001078/5.118, allocations: 0.5018 MB / 2.523 GB, free: 112 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004514/5.123, allocations: 0.7394 MB / 2.524 GB, free: 112 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/5.136, allocations: 12.58 MB / 2.536 GB, free: 101.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/5.138, allocations: 1.401 MB / 2.538 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002478/5.14, allocations: 430.5 kB / 2.538 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/5.141, allocations: 0.7244 MB / 2.539 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of SimCode: time 6.813e-06/5.141, allocations: 2.906 kB / 2.539 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09999/5.241, allocations: 53.2 MB / 2.591 GB, free: 98.57 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/5.242, allocations: 250.8 kB / 2.591 GB, free: 98.23 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.324/9.566, allocations: 4 kB / 2.591 GB, free: 98.23 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)