Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.619/1.619, allocations: 288.2 MB / 303.2 MB, free: 8.195 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.001007/0.001007, allocations: 183.4 kB / 371.8 MB, free: 10.25 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.418/1.418, allocations: 205.4 MB / 0.6305 GB, free: 9.98 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.0008689/0.0008689, allocations: 98.91 kB / 0.7439 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003845, allocations: 11.16 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.231, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9383/1.169, allocations: 448 MB / 1.417 GB, free: 13.39 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/1.17, allocations: 104.3 kB / 1.417 GB, free: 13.33 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.718/5.888, allocations: 1.137 GB / 2.554 GB, free: 139.4 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.656e-06/5.888, allocations: 1.281 kB / 2.554 GB, free: 139.4 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003403/5.889, allocations: 62.89 kB / 2.554 GB, free: 139.4 MB / 0.948 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.009638/5.898, allocations: 2.682 MB / 2.557 GB, free: 138.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/5.898, allocations: 11.25 kB / 2.557 GB, free: 138.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007174/5.899, allocations: 183.1 kB / 2.557 GB, free: 138.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002229/5.901, allocations: 375.3 kB / 2.557 GB, free: 138.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008908/5.91, allocations: 2.488 MB / 2.56 GB, free: 138.1 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/5.91, allocations: 103.9 kB / 2.56 GB, free: 138.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003197/5.911, allocations: 140.7 kB / 2.56 GB, free: 138.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/5.913, allocations: 1.426 MB / 2.561 GB, free: 137.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/5.914, allocations: 3.125 kB / 2.561 GB, free: 137.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/5.914, allocations: 56.31 kB / 2.561 GB, free: 137.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/5.914, allocations: 36.52 kB / 2.561 GB, free: 137.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/5.916, allocations: 1.029 MB / 2.562 GB, free: 137.7 MB / 0.948 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.01025/5.926, allocations: 7.15 MB / 2.569 GB, free: 133.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/5.928, allocations: 1.29 MB / 2.571 GB, free: 133.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003897/5.932, allocations: 2.259 MB / 2.573 GB, free: 131.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008399/5.933, allocations: 442.1 kB / 2.573 GB, free: 131.8 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009121/5.933, allocations: 89.02 kB / 2.573 GB, free: 131.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=69): time 4.078e-06/5.933, allocations: 0 / 2.573 GB, free: 131.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=69): time 0.002567/5.936, allocations: 1.216 MB / 2.574 GB, free: 131.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/5.936, allocations: 165.3 kB / 2.575 GB, free: 131.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/5.938, allocations: 1.313 MB / 2.576 GB, free: 131.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.841e-05/5.938, allocations: 48.83 kB / 2.576 GB, free: 131.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008083/5.939, allocations: 0.886 MB / 2.577 GB, free: 130.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/5.939, allocations: 246.8 kB / 2.577 GB, free: 130.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/5.939, allocations: 21.09 kB / 2.577 GB, free: 130.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.871e-05/5.939, allocations: 349.5 kB / 2.577 GB, free: 130.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006761/5.94, allocations: 347.4 kB / 2.578 GB, free: 130.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008596/5.941, allocations: 0.7306 MB / 2.578 GB, free: 130 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008545/5.942, allocations: 475.9 kB / 2.579 GB, free: 130 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/5.942, allocations: 0 / 2.579 GB, free: 130 MB / 0.948 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002304/5.944, allocations: 1.237 MB / 2.58 GB, free: 129.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009102/5.945, allocations: 3.734 MB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-05/5.945, allocations: 10.53 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.046e-05/5.945, allocations: 15.25 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/5.946, allocations: 256.1 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.231e-05/5.946, allocations: 17.41 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/5.948, allocations: 135.1 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/5.948, allocations: 49.23 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/5.948, allocations: 4.656 kB / 2.584 GB, free: 125.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00235/5.951, allocations: 1.061 MB / 2.585 GB, free: 125.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/5.951, allocations: 10.19 kB / 2.585 GB, free: 125.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/5.951, allocations: 19.5 kB / 2.585 GB, free: 125.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009891/5.952, allocations: 253 kB / 2.586 GB, free: 125.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.789e-05/5.952, allocations: 19.67 kB / 2.586 GB, free: 125.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/5.954, allocations: 131.2 kB / 2.586 GB, free: 125.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/5.954, allocations: 49.14 kB / 2.586 GB, free: 125.8 MB / 0.948 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.001286/5.955, allocations: 0.492 MB / 2.586 GB, free: 125.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003602/5.955, allocations: 173.3 kB / 2.586 GB, free: 125.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00249/5.958, allocations: 1.094 MB / 2.587 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.297e-05/5.958, allocations: 11.94 kB / 2.587 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/5.958, allocations: 0 / 2.587 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001604/5.959, allocations: 0.7991 MB / 2.588 GB, free: 125.4 MB / 0.948 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.004893/5.964, allocations: 2.4 MB / 2.591 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/5.964, allocations: 0 / 2.591 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008448/5.965, allocations: 159 kB / 2.591 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/5.966, allocations: 31.36 kB / 2.591 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-05/5.966, allocations: 21.73 kB / 2.591 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008782/5.966, allocations: 1.315 MB / 2.592 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/5.966, allocations: 1 kB / 2.592 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003138/5.97, allocations: 1.566 MB / 2.594 GB, free: 123.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/5.971, allocations: 346.5 kB / 2.594 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002049/5.971, allocations: 25.86 kB / 2.594 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/5.972, allocations: 111.5 kB / 2.594 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/5.972, allocations: 56.34 kB / 2.594 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-05/5.972, allocations: 38.58 kB / 2.594 GB, free: 123.2 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001841/5.974, allocations: 1.008 MB / 2.595 GB, free: 123.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.91e-07/5.974, allocations: 0 / 2.595 GB, free: 123.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004795/5.979, allocations: 1.131 MB / 2.596 GB, free: 122.9 MB / 0.948 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.006202/5.985, allocations: 3.314 MB / 2.599 GB, free: 121.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003259/5.988, allocations: 1.608 MB / 2.601 GB, free: 121.5 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/5.989, allocations: 2.156 kB / 2.601 GB, free: 121.5 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009599/5.989, allocations: 0.5486 MB / 2.602 GB, free: 121.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/5.993, allocations: 0.7595 MB / 2.602 GB, free: 121.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/6.004, allocations: 11.32 MB / 2.613 GB, free: 112.6 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009796/6.005, allocations: 1.446 MB / 2.615 GB, free: 111.8 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002258/6.007, allocations: 421.3 kB / 2.615 GB, free: 111.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009319/6.008, allocations: 0.7434 MB / 2.616 GB, free: 111.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.483e-06/6.008, allocations: 0 / 2.616 GB, free: 111.8 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.109/6.117, allocations: 54.22 MB / 2.669 GB, free: 109.7 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/6.117, allocations: 258.6 kB / 2.669 GB, free: 109.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.693/10.81, allocations: 4 kB / 2.669 GB, free: 109.4 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)