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.411/1.411, allocations: 252 MB / 267.3 MB, free: 10.8 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.001013/0.001013, allocations: 175.7 kB / 327 MB, free: 2.105 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.894/1.894, allocations: 205.4 MB / 0.578 GB, free: 20.14 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.0008537/0.0008537, allocations: 92.22 kB / 0.6826 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004064/0.0004065, allocations: 12.22 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2472, allocations: 106.3 MB / 0.9009 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05314/0.3004, allocations: 65.44 MB / 0.9648 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.03147/0.332, allocations: 19.53 MB / 0.9839 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005077/0.3371, allocations: 75.5 kB / 0.984 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.004304/0.3414, allocations: 1.022 MB / 0.9849 GB, free: 9.082 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.009526/0.351, allocations: 2.431 MB / 0.9873 GB, free: 6.645 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01022/0.3612, allocations: 3.138 MB / 0.9904 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0107/0.3719, allocations: 6.982 MB / 0.9972 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004024/0.376, allocations: 1.562 MB / 0.9987 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005013/0.381, allocations: 1.742 MB / 1 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003407/0.3845, allocations: 1.47 MB / 1.002 GB, free: 7.691 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0009242/0.3854, allocations: 76 kB / 1.002 GB, free: 7.617 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006136/0.3916, allocations: 1.922 MB / 1.004 GB, free: 5.691 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.001158/0.3928, allocations: 454 kB / 1.004 GB, free: 5.246 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.002721/0.3955, allocations: 1.027 MB / 1.005 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.007962/0.4035, allocations: 3.59 MB / 1.009 GB, free: 0.6055 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.4036, allocations: 0 / 1.009 GB, free: 0.6055 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.385e-06/0.4036, allocations: 0 / 1.009 GB, free: 0.6055 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0001426/0.4037, allocations: 0 / 1.009 GB, free: 0.6055 MB / 0.6511 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.006235/0.41, allocations: 2.341 MB / 1.011 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.4101, allocations: 12.03 kB / 1.011 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005675/0.4106, allocations: 182 kB / 1.011 GB, free: 13.99 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001958/0.4126, allocations: 389.9 kB / 1.012 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004679/0.4173, allocations: 1.786 MB / 1.013 GB, free: 11.77 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004304/0.4177, allocations: 166.4 kB / 1.014 GB, free: 11.61 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003829/0.4181, allocations: 132 kB / 1.014 GB, free: 11.48 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/0.4216, allocations: 1.484 MB / 1.015 GB, free: 9.906 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.769e-05/0.4216, allocations: 0 / 1.015 GB, free: 9.906 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/0.4218, allocations: 51.94 kB / 1.015 GB, free: 9.855 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.818e-05/0.4219, allocations: 40 kB / 1.015 GB, free: 9.816 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002916/0.4248, allocations: 1.145 MB / 1.016 GB, free: 8.664 MB / 0.6667 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.0116/0.4364, allocations: 7.381 MB / 1.023 GB, free: 0.7109 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.4389, allocations: 1.36 MB / 1.025 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.4399, allocations: 470.5 kB / 1.025 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004808/0.4447, allocations: 2.589 MB / 1.028 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001133/0.4459, allocations: 0.4947 MB / 1.028 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008443/0.4468, allocations: 91.25 kB / 1.028 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 4.538e-06/0.4468, allocations: 0 / 1.028 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.003545/0.4503, allocations: 1.295 MB / 1.03 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.4505, allocations: 188.5 kB / 1.03 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002867/0.4534, allocations: 1.529 MB / 1.031 GB, free: 8.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.4535, allocations: 45.7 kB / 1.031 GB, free: 8.219 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009363/0.4544, allocations: 0.8997 MB / 1.032 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.4547, allocations: 228.8 kB / 1.032 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/0.4548, allocations: 20 kB / 1.032 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4549, allocations: 341.9 kB / 1.033 GB, free: 6.723 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.456, allocations: 405.8 kB / 1.033 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.4572, allocations: 0.785 MB / 1.034 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/0.4594, allocations: 1.144 MB / 1.035 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.4595, allocations: 11.94 kB / 1.035 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003077/0.4625, allocations: 1.347 MB / 1.036 GB, free: 2.719 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003376/0.4629, allocations: 409.2 kB / 1.037 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/0.4629, allocations: 12 kB / 1.037 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.545e-05/0.463, allocations: 16 kB / 1.037 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.464, allocations: 255.6 kB / 1.037 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.559e-05/0.464, allocations: 23.92 kB / 1.037 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.4657, allocations: 136.5 kB / 1.037 GB, free: 1.742 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.4658, allocations: 51.98 kB / 1.037 GB, free: 1.691 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.4658, allocations: 4 kB / 1.037 GB, free: 1.688 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002522/0.4683, allocations: 1.151 MB / 1.038 GB, free: 0.5273 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.363e-05/0.4684, allocations: 12 kB / 1.038 GB, free: 0.5156 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4684, allocations: 12 kB / 1.038 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009827/0.4694, allocations: 260.1 kB / 1.039 GB, free: 256 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.684e-05/0.4694, allocations: 15.94 kB / 1.039 GB, free: 240 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.471, allocations: 144.3 kB / 1.039 GB, free: 96 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.4712, allocations: 47.98 kB / 1.039 GB, free: 48 kB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001134/0.4723, allocations: 0.4935 MB / 1.039 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004115/0.4727, allocations: 169.9 kB / 1.039 GB, free: 15.38 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.4755, allocations: 1.112 MB / 1.041 GB, free: 14.24 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.4755, allocations: 8 kB / 1.041 GB, free: 14.23 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4756, allocations: 0 / 1.041 GB, free: 14.23 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001879/0.4774, allocations: 0.8276 MB / 1.041 GB, free: 13.39 MB / 0.698 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.005754/0.4832, allocations: 2.705 MB / 1.044 GB, free: 10.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/0.4832, allocations: 4 kB / 1.044 GB, free: 10.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008137/0.4841, allocations: 163.8 kB / 1.044 GB, free: 10.44 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/0.4843, allocations: 40.83 kB / 1.044 GB, free: 10.39 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.99e-05/0.4844, allocations: 19.98 kB / 1.044 GB, free: 10.38 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.4857, allocations: 1.374 MB / 1.046 GB, free: 8.871 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4857, allocations: 3.938 kB / 1.046 GB, free: 8.867 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/0.4893, allocations: 1.654 MB / 1.047 GB, free: 7.168 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009496/0.4903, allocations: 354.8 kB / 1.048 GB, free: 6.801 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004845/0.4907, allocations: 28.11 kB / 1.048 GB, free: 6.773 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.4922, allocations: 123.7 kB / 1.048 GB, free: 6.652 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4924, allocations: 72.3 kB / 1.048 GB, free: 6.582 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.644e-05/0.4925, allocations: 35.97 kB / 1.048 GB, free: 6.547 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.002183/0.4947, allocations: 1.09 MB / 1.049 GB, free: 5.434 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.61e-07/0.4947, allocations: 0 / 1.049 GB, free: 5.434 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003836/0.4985, allocations: 0.9901 MB / 1.05 GB, free: 4.441 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005509/0.5041, allocations: 2.621 MB / 1.052 GB, free: 1.773 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003932/0.508, allocations: 1.729 MB / 1.054 GB, free: 12 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.508, allocations: 1.438 kB / 1.054 GB, free: 12 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.4515/0.9596, allocations: 0.5697 MB / 1.055 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004794/0.9644, allocations: 0.8708 MB / 1.055 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02587/0.9903, allocations: 14.37 MB / 1.07 GB, free: 139.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.9919, allocations: 1.41 MB / 1.071 GB, free: 138.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002352/0.9942, allocations: 422.4 kB / 1.071 GB, free: 138.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.9953, allocations: 0.7392 MB / 1.072 GB, free: 138.8 MB / 0.698 GB Notification: Performance of SimCode: time 1.152e-06/0.9953, allocations: 0 / 1.072 GB, free: 138.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08118/1.077, allocations: 48.59 MB / 1.119 GB, free: 103 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/1.077, allocations: 276.2 kB / 1.12 GB, free: 102.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.561/5.638, allocations: 0 / 1.12 GB, free: 102.6 MB / 0.698 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)