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.458/1.458, allocations: 249.5 MB / 257 MB, free: 6.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 175.5 kB / 316.3 MB, free: 3.23 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.696/1.696, allocations: 205.3 MB / 0.5671 GB, free: 15.82 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.000945/0.0009451, allocations: 82.59 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.3e-05/2.301e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2286, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.665/1.893, allocations: 447.2 MB / 1.322 GB, free: 252.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/1.894, allocations: 99.25 kB / 1.322 GB, free: 252.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.933/5.827, allocations: 1.129 GB / 2.451 GB, free: 120 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.114e-06/5.827, allocations: 2.438 kB / 2.451 GB, free: 120 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002292/5.827, allocations: 60.41 kB / 2.451 GB, free: 119.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.004337/5.832, allocations: 2.072 MB / 2.453 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/5.832, allocations: 10.38 kB / 2.453 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002082/5.834, allocations: 460.6 kB / 2.454 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005082/5.839, allocations: 2.29 MB / 2.456 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.775e-05/5.839, allocations: 35.22 kB / 2.456 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/5.839, allocations: 77.03 kB / 2.456 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00137/5.84, allocations: 0.78 MB / 2.457 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/5.842, allocations: 1.091 MB / 2.458 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/5.842, allocations: 7.406 kB / 2.458 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.875e-05/5.842, allocations: 6.406 kB / 2.458 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/5.842, allocations: 24.97 kB / 2.458 GB, free: 116.7 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.007274/5.849, allocations: 6.682 MB / 2.465 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/5.851, allocations: 1.141 MB / 2.466 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/5.851, allocations: 307.9 kB / 2.466 GB, free: 110.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003805/5.855, allocations: 2.876 MB / 2.469 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004631/5.855, allocations: 334.6 kB / 2.469 GB, free: 108.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005172/5.856, allocations: 72.75 kB / 2.469 GB, free: 108.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 3.366e-06/5.856, allocations: 0 / 2.469 GB, free: 108.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.00502/5.861, allocations: 1.291 MB / 2.47 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/5.861, allocations: 166.2 kB / 2.471 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/5.863, allocations: 1.243 MB / 2.472 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.961e-05/5.863, allocations: 28.11 kB / 2.472 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000775/5.863, allocations: 0.8796 MB / 2.473 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/5.864, allocations: 207.3 kB / 2.473 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-05/5.864, allocations: 7.031 kB / 2.473 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001004/5.864, allocations: 346 kB / 2.473 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003826/5.864, allocations: 261.9 kB / 2.473 GB, free: 105.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/5.865, allocations: 0.6842 MB / 2.474 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004317/5.869, allocations: 0.9907 MB / 2.475 GB, free: 105 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/5.869, allocations: 3.969 kB / 2.475 GB, free: 105 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005448/5.875, allocations: 1.642 MB / 2.477 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008289/5.875, allocations: 4.542 MB / 2.481 GB, free: 99.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/5.875, allocations: 17.48 kB / 2.481 GB, free: 99.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.516e-05/5.875, allocations: 22.88 kB / 2.481 GB, free: 99.69 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008678/5.876, allocations: 248.6 kB / 2.481 GB, free: 99.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.107e-05/5.876, allocations: 26.39 kB / 2.481 GB, free: 99.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/5.878, allocations: 94.77 kB / 2.482 GB, free: 99.65 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/5.878, allocations: 55.72 kB / 2.482 GB, free: 99.64 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/5.878, allocations: 6.25 kB / 2.482 GB, free: 99.64 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004822/5.883, allocations: 1.42 MB / 2.483 GB, free: 99.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/5.883, allocations: 11.75 kB / 2.483 GB, free: 99.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/5.883, allocations: 19.75 kB / 2.483 GB, free: 99.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008197/5.884, allocations: 244.3 kB / 2.483 GB, free: 99.31 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/5.884, allocations: 26.67 kB / 2.483 GB, free: 99.31 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/5.885, allocations: 92.14 kB / 2.483 GB, free: 99.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.122e-05/5.885, allocations: 55.47 kB / 2.483 GB, free: 99.29 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 117 * 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.0002734/5.886, allocations: 147.2 kB / 2.484 GB, free: 99.16 MB / 0.8855 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004821/5.89, allocations: 1.259 MB / 2.485 GB, free: 98.83 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/5.891, allocations: 168.6 kB / 2.485 GB, free: 98.74 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005038/5.896, allocations: 1.488 MB / 2.486 GB, free: 98.38 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/5.896, allocations: 14.95 kB / 2.486 GB, free: 98.37 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/5.896, allocations: 3.938 kB / 2.486 GB, free: 98.37 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004221/5.9, allocations: 1.345 MB / 2.488 GB, free: 97.88 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.006846/5.907, allocations: 2.546 MB / 2.49 GB, free: 96.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/5.907, allocations: 3.812 kB / 2.49 GB, free: 96.95 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006318/5.907, allocations: 135.9 kB / 2.49 GB, free: 96.93 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/5.908, allocations: 34.88 kB / 2.49 GB, free: 96.91 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/5.908, allocations: 15.67 kB / 2.49 GB, free: 96.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007326/5.908, allocations: 1.267 MB / 2.492 GB, free: 95.65 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/5.908, allocations: 0 / 2.492 GB, free: 95.65 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005142/5.914, allocations: 1.871 MB / 2.493 GB, free: 94.91 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006094/5.914, allocations: 330.5 kB / 2.494 GB, free: 94.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/5.914, allocations: 7.359 kB / 2.494 GB, free: 94.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007878/5.915, allocations: 79.03 kB / 2.494 GB, free: 94.66 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/5.915, allocations: 57.14 kB / 2.494 GB, free: 94.65 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.763e-05/5.915, allocations: 27.73 kB / 2.494 GB, free: 94.65 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001222/5.917, allocations: 0.9232 MB / 2.495 GB, free: 94.26 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/5.917, allocations: 0 / 2.495 GB, free: 94.26 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003406/5.92, allocations: 0.9913 MB / 2.496 GB, free: 94.02 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) * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007381/5.927, allocations: 3.688 MB / 2.499 GB, free: 92.32 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001868/5.929, allocations: 1.36 MB / 2.501 GB, free: 91.71 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/5.929, allocations: 4.219 kB / 2.501 GB, free: 91.71 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005543/5.93, allocations: 445.4 kB / 2.501 GB, free: 91.47 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002854/5.933, allocations: 0.6258 MB / 2.502 GB, free: 91.32 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005634/5.938, allocations: 2.741 MB / 2.504 GB, free: 90.11 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008897/5.939, allocations: 1.413 MB / 2.506 GB, free: 89.05 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00269/5.942, allocations: 0.5833 MB / 2.506 GB, free: 88.79 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008328/5.943, allocations: 0.6952 MB / 2.507 GB, free: 88.18 MB / 0.8855 GB Notification: Performance of SimCode: time 1.153e-06/5.943, allocations: 0 / 2.507 GB, free: 88.18 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08668/6.03, allocations: 47.84 MB / 2.554 GB, free: 41.81 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/6.03, allocations: 188.3 kB / 2.554 GB, free: 41.61 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.6/9.63, allocations: 3.516 kB / 2.554 GB, free: 41.61 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)