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.433/1.433, allocations: 249.5 MB / 257 MB, free: 6.961 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.001027/0.001027, allocations: 184.9 kB / 316.3 MB, free: 3.316 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.633/1.633, allocations: 205.3 MB / 0.5671 GB, free: 15.93 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.0009804/0.0009802, allocations: 94.47 kB / 0.6714 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.974e-05/1.976e-05, allocations: 4 kB / 0.7815 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2226, allocations: 106.4 MB / 0.8853 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.644/1.866, allocations: 440.7 MB / 1.316 GB, free: 304 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/1.867, allocations: 87.7 kB / 1.316 GB, free: 303.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.862/5.729, allocations: 1.097 GB / 2.413 GB, free: 128.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.236e-06/5.729, allocations: 3.844 kB / 2.413 GB, free: 128.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004047/5.729, allocations: 57.95 kB / 2.413 GB, free: 128.4 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.006631/5.736, allocations: 2.177 MB / 2.415 GB, free: 127.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/5.736, allocations: 10.97 kB / 2.415 GB, free: 127.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002247/5.738, allocations: 374.9 kB / 2.416 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006822/5.745, allocations: 2.465 MB / 2.418 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-05/5.745, allocations: 41.53 kB / 2.418 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002288/5.745, allocations: 87.02 kB / 2.418 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001655/5.747, allocations: 0.859 MB / 2.419 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/5.749, allocations: 1.171 MB / 2.42 GB, free: 126.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/5.749, allocations: 8.5 kB / 2.42 GB, free: 126.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.917e-05/5.749, allocations: 3.781 kB / 2.42 GB, free: 126.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.29e-05/5.749, allocations: 37.78 kB / 2.42 GB, free: 126.5 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.009619/5.759, allocations: 6.913 MB / 2.427 GB, free: 122.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/5.76, allocations: 1.185 MB / 2.428 GB, free: 121.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/5.76, allocations: 331.9 kB / 2.428 GB, free: 121.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003178/5.763, allocations: 2.24 MB / 2.43 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005056/5.764, allocations: 361.3 kB / 2.431 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006205/5.765, allocations: 72.16 kB / 2.431 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 3.206e-06/5.765, allocations: 3 kB / 2.431 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.001915/5.767, allocations: 0.8095 MB / 2.432 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/5.767, allocations: 167.5 kB / 2.432 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/5.768, allocations: 1.202 MB / 2.433 GB, free: 119.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.365e-05/5.768, allocations: 28.98 kB / 2.433 GB, free: 119.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007068/5.769, allocations: 0.8788 MB / 2.434 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/5.769, allocations: 234.1 kB / 2.434 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/5.769, allocations: 3.281 kB / 2.434 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.745e-05/5.769, allocations: 345.8 kB / 2.434 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/5.77, allocations: 285 kB / 2.435 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005829/5.77, allocations: 0.6504 MB / 2.435 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/5.772, allocations: 478.2 kB / 2.436 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/5.772, allocations: 0 / 2.436 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002097/5.774, allocations: 1.105 MB / 2.437 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008131/5.775, allocations: 3.734 MB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/5.775, allocations: 9.719 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.984e-05/5.775, allocations: 20.86 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009206/5.776, allocations: 252 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/5.776, allocations: 18.16 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/5.777, allocations: 108.2 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/5.777, allocations: 58.23 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/5.777, allocations: 5.5 kB / 2.441 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001831/5.779, allocations: 0.8847 MB / 2.442 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/5.779, allocations: 10.81 kB / 2.442 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/5.779, allocations: 14.97 kB / 2.442 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000841/5.78, allocations: 256 kB / 2.442 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/5.78, allocations: 23.34 kB / 2.442 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/5.781, allocations: 112.3 kB / 2.442 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.913e-05/5.781, allocations: 49.84 kB / 2.442 GB, free: 114.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 () * 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.0002581/5.782, allocations: 145.2 kB / 2.442 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001678/5.783, allocations: 0.7872 MB / 2.443 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/5.784, allocations: 164.6 kB / 2.443 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/5.786, allocations: 0.9763 MB / 2.444 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/5.786, allocations: 21.3 kB / 2.444 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/5.786, allocations: 0 / 2.444 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001168/5.787, allocations: 0.693 MB / 2.445 GB, free: 114 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.003798/5.791, allocations: 2.119 MB / 2.447 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/5.791, allocations: 3.812 kB / 2.447 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006887/5.791, allocations: 162.3 kB / 2.447 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/5.792, allocations: 24.3 kB / 2.447 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/5.792, allocations: 19.3 kB / 2.447 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007426/5.792, allocations: 1.267 MB / 2.449 GB, free: 112.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/5.792, allocations: 3.875 kB / 2.449 GB, free: 112.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/5.795, allocations: 1.397 MB / 2.45 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007142/5.795, allocations: 342.3 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/5.795, allocations: 3.953 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009209/5.796, allocations: 98.53 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/5.797, allocations: 58.61 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.826e-05/5.797, allocations: 31.41 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001298/5.798, allocations: 0.8983 MB / 2.451 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.81e-07/5.798, allocations: 0 / 2.451 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0034/5.801, allocations: 1.071 MB / 2.452 GB, free: 111.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 68 * 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.004344/5.806, allocations: 3.12 MB / 2.455 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002294/5.808, allocations: 1.425 MB / 2.457 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/5.808, allocations: 0 / 2.457 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007896/5.809, allocations: 468.1 kB / 2.457 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00456/5.813, allocations: 0.7455 MB / 2.458 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007373/5.821, allocations: 2.803 MB / 2.461 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008774/5.822, allocations: 1.454 MB / 2.462 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002501/5.824, allocations: 0.5476 MB / 2.463 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007711/5.825, allocations: 0.7138 MB / 2.463 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.292e-06/5.825, allocations: 0 / 2.463 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09007/5.915, allocations: 50.84 MB / 2.513 GB, free: 97.01 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/5.915, allocations: 182.8 kB / 2.513 GB, free: 96.82 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.848/9.763, allocations: 4 kB / 2.513 GB, free: 96.81 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)