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.509/1.509, allocations: 252 MB / 267.3 MB, free: 10.84 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.001379/0.001379, allocations: 178.3 kB / 327 MB, free: 2.086 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.836/1.836, allocations: 205.4 MB / 0.578 GB, free: 20.16 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.0009827/0.0009827, allocations: 96.11 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003376, allocations: 11.78 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2222, allocations: 106.3 MB / 0.9009 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.0436/0.2658, allocations: 52 MB / 0.9517 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02376/0.2896, allocations: 17.91 MB / 0.9692 GB, free: 9.223 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003571/0.2933, allocations: 75.44 kB / 0.9693 GB, free: 9.148 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003841/0.2971, allocations: 0.9835 MB / 0.9702 GB, free: 8.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.007199/0.3043, allocations: 2.131 MB / 0.9723 GB, free: 6.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.009428/0.3138, allocations: 3.065 MB / 0.9753 GB, free: 2.977 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.008619/0.3224, allocations: 6.026 MB / 0.9812 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003296/0.3258, allocations: 1.346 MB / 0.9825 GB, free: 11.56 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004325/0.3301, allocations: 1.618 MB / 0.9841 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00296/0.3331, allocations: 1.341 MB / 0.9854 GB, free: 8.59 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0007226/0.3339, allocations: 68 kB / 0.9855 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005069/0.339, allocations: 1.805 MB / 0.9872 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.3401, allocations: 434.1 kB / 0.9876 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.002367/0.3425, allocations: 0.9493 MB / 0.9886 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.006806/0.3493, allocations: 3.298 MB / 0.9918 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3493, allocations: 4 kB / 0.9918 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.565e-06/0.3494, allocations: 3.938 kB / 0.9918 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001206/0.3495, allocations: 0 / 0.9918 GB, free: 2.012 MB / 0.6355 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.005365/0.3549, allocations: 2.208 MB / 0.9939 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.3549, allocations: 11.86 kB / 0.994 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004688/0.3554, allocations: 173.2 kB / 0.9941 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0024/0.3578, allocations: 493.4 kB / 0.9946 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004645/0.3625, allocations: 1.636 MB / 0.9962 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004141/0.3629, allocations: 162.2 kB / 0.9963 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003847/0.3633, allocations: 120 kB / 0.9965 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003656/0.367, allocations: 1.404 MB / 0.9978 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.875e-05/0.367, allocations: 0 / 0.9978 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/0.3672, allocations: 48 kB / 0.9979 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.072e-05/0.3673, allocations: 31.94 kB / 0.9979 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.3705, allocations: 1.136 MB / 0.999 GB, free: 10.37 MB / 0.6511 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.01184/0.3824, allocations: 7.022 MB / 1.006 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002841/0.3852, allocations: 1.447 MB / 1.007 GB, free: 1.25 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.3863, allocations: 434.3 kB / 1.008 GB, free: 0.8203 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005761/0.3921, allocations: 3.079 MB / 1.011 GB, free: 13.4 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.3933, allocations: 458.9 kB / 1.011 GB, free: 12.95 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007735/0.3941, allocations: 91.25 kB / 1.011 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=60): time 4.518e-06/0.3941, allocations: 0 / 1.011 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of matching and sorting (n=60): time 0.003689/0.3978, allocations: 1.299 MB / 1.012 GB, free: 11.52 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/0.398, allocations: 137.1 kB / 1.013 GB, free: 11.36 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002817/0.4008, allocations: 1.586 MB / 1.014 GB, free: 9.773 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.4009, allocations: 41.7 kB / 1.014 GB, free: 9.727 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.000934/0.4019, allocations: 0.8841 MB / 1.015 GB, free: 8.832 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.4021, allocations: 217 kB / 1.015 GB, free: 8.617 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/0.4022, allocations: 20 kB / 1.015 GB, free: 8.598 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.4024, allocations: 353.9 kB / 1.016 GB, free: 8.246 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.4035, allocations: 405.8 kB / 1.016 GB, free: 7.848 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.4049, allocations: 0.8203 MB / 1.017 GB, free: 6.844 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002413/0.4073, allocations: 1.182 MB / 1.018 GB, free: 5.508 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.4074, allocations: 4 kB / 1.018 GB, free: 5.504 MB / 0.6667 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003323/0.4107, allocations: 1.367 MB / 1.019 GB, free: 4.121 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003949/0.4111, allocations: 441.5 kB / 1.02 GB, free: 3.527 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.332e-05/0.4112, allocations: 15.94 kB / 1.02 GB, free: 3.512 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.651e-05/0.4112, allocations: 23.92 kB / 1.02 GB, free: 3.488 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.4123, allocations: 263.6 kB / 1.02 GB, free: 3.23 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.808e-05/0.4123, allocations: 23.92 kB / 1.02 GB, free: 3.207 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.4139, allocations: 132.4 kB / 1.02 GB, free: 3.078 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.4141, allocations: 59.91 kB / 1.02 GB, free: 3.02 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.4141, allocations: 4 kB / 1.02 GB, free: 3.016 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002702/0.4168, allocations: 1.165 MB / 1.021 GB, free: 1.844 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-05/0.4168, allocations: 12 kB / 1.021 GB, free: 1.832 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.4169, allocations: 16 kB / 1.021 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.4179, allocations: 268.1 kB / 1.022 GB, free: 1.555 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-05/0.4179, allocations: 19.94 kB / 1.022 GB, free: 1.535 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.4194, allocations: 128.5 kB / 1.022 GB, free: 1.41 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.4196, allocations: 51.98 kB / 1.022 GB, free: 1.359 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (121): * Single equations (assignments): 117 * 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.0009955/0.4206, allocations: 489.3 kB / 1.022 GB, free: 0.8711 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004552/0.421, allocations: 165.8 kB / 1.022 GB, free: 0.707 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003071/0.4241, allocations: 1.167 MB / 1.024 GB, free: 15.53 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.22e-05/0.4241, allocations: 11.98 kB / 1.024 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.4242, allocations: 7.938 kB / 1.024 GB, free: 15.51 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002108/0.4263, allocations: 1.006 MB / 1.025 GB, free: 14.45 MB / 0.6823 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.005635/0.4319, allocations: 2.449 MB / 1.027 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.4319, allocations: 4 kB / 1.027 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007982/0.4327, allocations: 147.9 kB / 1.027 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002273/0.433, allocations: 36.77 kB / 1.027 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.843e-05/0.4331, allocations: 23.98 kB / 1.027 GB, free: 11.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.4344, allocations: 1.37 MB / 1.029 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4345, allocations: 0 / 1.029 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003752/0.4382, allocations: 1.631 MB / 1.03 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4392, allocations: 354.6 kB / 1.03 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004874/0.4398, allocations: 16 kB / 1.03 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.4411, allocations: 119.8 kB / 1.031 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.4412, allocations: 52.48 kB / 1.031 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.509e-05/0.4413, allocations: 27.97 kB / 1.031 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002306/0.4436, allocations: 1.125 MB / 1.032 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4436, allocations: 3.938 kB / 1.032 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003691/0.4473, allocations: 0.9123 MB / 1.033 GB, free: 5.914 MB / 0.6823 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) * Number of clocked states: 0 () * 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 (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.006354/0.4537, allocations: 2.834 MB / 1.035 GB, free: 3.172 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004167/0.4579, allocations: 1.733 MB / 1.037 GB, free: 1.402 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.4579, allocations: 4 kB / 1.037 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001479/0.4594, allocations: 0.5733 MB / 1.038 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004613/0.464, allocations: 0.7549 MB / 1.038 GB, free: 60 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03108/0.4951, allocations: 14.12 MB / 1.052 GB, free: 0.957 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3989/0.8941, allocations: 1.358 MB / 1.054 GB, free: 143.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002095/0.8963, allocations: 420.5 kB / 1.054 GB, free: 143.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.8973, allocations: 0.7252 MB / 1.055 GB, free: 143.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.052e-06/0.8973, allocations: 0 / 1.055 GB, free: 143.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08798/0.9853, allocations: 45.12 MB / 1.099 GB, free: 120.1 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.9855, allocations: 279.8 kB / 1.099 GB, free: 119.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.134/5.119, allocations: 0 / 1.099 GB, free: 119.8 MB / 0.698 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)