Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.416/1.416, allocations: 251.9 MB / 266.9 MB, free: 11 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.001109/0.001109, allocations: 182.8 kB / 326.5 MB, free: 2.219 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.578/1.578, allocations: 205.4 MB / 0.5775 GB, free: 20.54 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.0009211/0.0009211, allocations: 91.98 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004131, allocations: 12.06 kB / 0.7963 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2418, allocations: 106.3 MB / 0.9001 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.002/1.244, allocations: 440.4 MB / 1.33 GB, free: 8.82 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/1.244, allocations: 102.3 kB / 1.33 GB, free: 8.77 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.658/5.903, allocations: 1.106 GB / 2.437 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.185e-06/5.903, allocations: 0 / 2.437 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003116/5.903, allocations: 59.53 kB / 2.437 GB, free: 127.2 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.009145/5.912, allocations: 2.679 MB / 2.439 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/5.912, allocations: 8.406 kB / 2.439 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007485/5.913, allocations: 187.4 kB / 2.439 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002188/5.915, allocations: 377.4 kB / 2.44 GB, free: 126.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007723/5.923, allocations: 2.489 MB / 2.442 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/5.923, allocations: 99.89 kB / 2.442 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002404/5.923, allocations: 135.6 kB / 2.443 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00275/5.926, allocations: 1.42 MB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/5.926, allocations: 5.062 kB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/5.926, allocations: 52.38 kB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.402e-05/5.926, allocations: 39.12 kB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002288/5.929, allocations: 1.033 MB / 2.445 GB, free: 125.5 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.009583/5.938, allocations: 7.144 MB / 2.452 GB, free: 121.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/5.94, allocations: 1.289 MB / 2.453 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003596/5.944, allocations: 2.233 MB / 2.455 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000785/5.944, allocations: 447.5 kB / 2.456 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007945/5.945, allocations: 87.02 kB / 2.456 GB, free: 119.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=69): time 2.685e-06/5.945, allocations: 3.406 kB / 2.456 GB, free: 119.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=69): time 0.002514/5.948, allocations: 1.21 MB / 2.457 GB, free: 119.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/5.948, allocations: 169 kB / 2.457 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/5.95, allocations: 1.306 MB / 2.459 GB, free: 119 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.032e-05/5.95, allocations: 50.05 kB / 2.459 GB, free: 118.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007815/5.951, allocations: 0.8958 MB / 2.459 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/5.951, allocations: 243 kB / 2.46 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/5.951, allocations: 21 kB / 2.46 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000157/5.951, allocations: 349.9 kB / 2.46 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007471/5.952, allocations: 344.8 kB / 2.46 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009521/5.953, allocations: 0.7273 MB / 2.461 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008383/5.954, allocations: 475.3 kB / 2.462 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/5.954, allocations: 3.312 kB / 2.462 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002427/5.956, allocations: 1.231 MB / 2.463 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001031/5.957, allocations: 3.74 MB / 2.466 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/5.957, allocations: 7.062 kB / 2.466 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.946e-05/5.957, allocations: 15.5 kB / 2.466 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009698/5.958, allocations: 253.8 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.773e-05/5.958, allocations: 20.28 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/5.96, allocations: 133.1 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/5.96, allocations: 54.91 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/5.96, allocations: 3.969 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002272/5.962, allocations: 1.062 MB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/5.962, allocations: 14.31 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/5.962, allocations: 17.31 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/5.964, allocations: 248.2 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.112e-05/5.964, allocations: 20.86 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001728/5.965, allocations: 130.5 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/5.965, allocations: 49.66 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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.001394/5.967, allocations: 0.5032 MB / 2.469 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003775/5.967, allocations: 168.3 kB / 2.469 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/5.969, allocations: 1.091 MB / 2.47 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/5.969, allocations: 9.781 kB / 2.47 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/5.97, allocations: 3.953 kB / 2.47 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001415/5.971, allocations: 0.799 MB / 2.471 GB, free: 113.1 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.00425/5.975, allocations: 2.383 MB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.371e-06/5.975, allocations: 0 / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/5.976, allocations: 158.7 kB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001948/5.976, allocations: 30.2 kB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/5.976, allocations: 26.16 kB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008417/5.977, allocations: 1.329 MB / 2.475 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/5.977, allocations: 3.281 kB / 2.475 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/5.98, allocations: 1.558 MB / 2.476 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009045/5.981, allocations: 343.6 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/5.981, allocations: 21.3 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/5.982, allocations: 112.6 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/5.982, allocations: 59.05 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.125e-05/5.982, allocations: 28.27 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001669/5.984, allocations: 1.009 MB / 2.478 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.4e-07/5.984, allocations: 0 / 2.478 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00399/5.988, allocations: 1.126 MB / 2.479 GB, free: 110.7 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.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 (77): * Single equations (assignments): 69 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005922/5.994, allocations: 3.308 MB / 2.482 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00375/5.997, allocations: 1.605 MB / 2.484 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/5.998, allocations: 2.406 kB / 2.484 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009483/5.998, allocations: 0.5351 MB / 2.484 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003707/6.002, allocations: 0.7612 MB / 2.485 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/6.012, allocations: 11.31 MB / 2.496 GB, free: 100.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009812/6.013, allocations: 1.448 MB / 2.497 GB, free: 99.64 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002173/6.016, allocations: 424.7 kB / 2.498 GB, free: 99.62 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000904/6.017, allocations: 0.746 MB / 2.499 GB, free: 99.61 MB / 0.8855 GB Notification: Performance of SimCode: time 1.453e-06/6.017, allocations: 0 / 2.499 GB, free: 99.61 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09327/6.11, allocations: 53.96 MB / 2.551 GB, free: 97.54 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/6.11, allocations: 253 kB / 2.551 GB, free: 97.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.588/10.7, allocations: 3.797 kB / 2.551 GB, free: 97.2 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)