Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.561/2.561, allocations: 287.5 MB / 302.4 MB, free: 8.234 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.001313/0.001313, allocations: 182.3 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.4 MB / 0.6297 GB, free: 10.64 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.0009334/0.0009332, allocations: 89.31 kB / 0.743 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006124/0.0006126, allocations: 12.88 kB / 0.8659 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2359, allocations: 115.3 MB / 0.9785 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.06939/0.3054, allocations: 49.16 MB / 1.026 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.03632/0.3417, allocations: 16.61 MB / 1.043 GB, free: 10.36 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003304/0.3451, allocations: 75.5 kB / 1.043 GB, free: 10.28 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.004309/0.3495, allocations: 0.7997 MB / 1.044 GB, free: 9.48 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.008162/0.3576, allocations: 1.878 MB / 1.045 GB, free: 7.598 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.01177/0.3694, allocations: 2.731 MB / 1.048 GB, free: 4.887 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.009776/0.3792, allocations: 5.173 MB / 1.053 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003309/0.3826, allocations: 1.23 MB / 1.054 GB, free: 14.44 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004995/0.3877, allocations: 1.544 MB / 1.056 GB, free: 12.89 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003349/0.3911, allocations: 1.26 MB / 1.057 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0007411/0.3918, allocations: 68 kB / 1.057 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00579/0.3977, allocations: 1.517 MB / 1.059 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001157/0.3989, allocations: 414.3 kB / 1.059 GB, free: 9.633 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0009519/0.3998, allocations: 408.6 kB / 1.059 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.005731/0.4056, allocations: 2.502 MB / 1.062 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.4057, allocations: 0 / 1.062 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.356e-06/0.4057, allocations: 0 / 1.062 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001015/0.4058, allocations: 0 / 1.062 GB, free: 6.719 MB / 0.6823 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.006797/0.4126, allocations: 2.249 MB / 1.064 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.4127, allocations: 12.03 kB / 1.064 GB, free: 4.391 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005166/0.4132, allocations: 173 kB / 1.064 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003679/0.4169, allocations: 485 kB / 1.065 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005223/0.4222, allocations: 1.583 MB / 1.066 GB, free: 2.102 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000703/0.4229, allocations: 154.1 kB / 1.066 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003809/0.4233, allocations: 120 kB / 1.066 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004796/0.4281, allocations: 1.395 MB / 1.068 GB, free: 344 kB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.179e-05/0.4282, allocations: 4 kB / 1.068 GB, free: 340 kB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.4284, allocations: 48 kB / 1.068 GB, free: 292 kB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.012e-05/0.4285, allocations: 32 kB / 1.068 GB, free: 260 kB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6351/1.064, allocations: 1.125 MB / 1.069 GB, free: 89.24 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 preOpt removeSimpleEquations (simulation): time 0.01577/1.08, allocations: 7.01 MB / 1.076 GB, free: 84.4 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004827/1.084, allocations: 1.432 MB / 1.077 GB, free: 83.51 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/1.086, allocations: 435.6 kB / 1.078 GB, free: 83.38 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007878/1.094, allocations: 3.088 MB / 1.081 GB, free: 80.94 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002033/1.096, allocations: 464.5 kB / 1.081 GB, free: 80.79 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009476/1.097, allocations: 86.41 kB / 1.081 GB, free: 80.76 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 5.411e-06/1.097, allocations: 3 kB / 1.081 GB, free: 80.76 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.006532/1.104, allocations: 1.295 MB / 1.082 GB, free: 80.25 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/1.104, allocations: 136.5 kB / 1.083 GB, free: 80.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004017/1.108, allocations: 1.574 MB / 1.084 GB, free: 79.52 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002472/1.108, allocations: 44.55 kB / 1.084 GB, free: 79.48 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/1.11, allocations: 0.8917 MB / 1.085 GB, free: 78.78 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003922/1.11, allocations: 219.5 kB / 1.085 GB, free: 78.61 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/1.11, allocations: 17.89 kB / 1.085 GB, free: 78.6 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001124/1.11, allocations: 344 kB / 1.086 GB, free: 78.28 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/1.112, allocations: 396.8 kB / 1.086 GB, free: 78.17 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002273/1.115, allocations: 0.7972 MB / 1.087 GB, free: 77.55 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002204/1.117, allocations: 0.5007 MB / 1.087 GB, free: 77.35 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.433e-05/1.117, allocations: 3.625 kB / 1.087 GB, free: 77.35 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.005374/1.122, allocations: 1.336 MB / 1.089 GB, free: 76.83 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002713/1.123, allocations: 450.6 kB / 1.089 GB, free: 76.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.776e-05/1.123, allocations: 11.97 kB / 1.089 GB, free: 76.26 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.321e-05/1.123, allocations: 17.41 kB / 1.089 GB, free: 76.26 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/1.125, allocations: 271.3 kB / 1.089 GB, free: 76.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.983e-05/1.125, allocations: 21.22 kB / 1.089 GB, free: 76.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/1.127, allocations: 135.5 kB / 1.089 GB, free: 76.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003045/1.128, allocations: 54.17 kB / 1.089 GB, free: 76.19 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/1.128, allocations: 4.125 kB / 1.089 GB, free: 76.19 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004618/1.132, allocations: 1.166 MB / 1.091 GB, free: 75.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.649e-05/1.132, allocations: 19.58 kB / 1.091 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/1.132, allocations: 17.06 kB / 1.091 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/1.135, allocations: 261.2 kB / 1.091 GB, free: 75.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.974e-05/1.135, allocations: 27.58 kB / 1.091 GB, free: 75.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002399/1.137, allocations: 136 kB / 1.091 GB, free: 75.69 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002951/1.137, allocations: 48.61 kB / 1.091 GB, free: 75.68 MB / 0.6823 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 (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.001299/1.139, allocations: 488.6 kB / 1.092 GB, free: 75.34 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/1.139, allocations: 165.4 kB / 1.092 GB, free: 75.25 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004664/1.144, allocations: 1.169 MB / 1.093 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/1.144, allocations: 16.53 kB / 1.093 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.144, allocations: 1.5 kB / 1.093 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003652/1.148, allocations: 1.003 MB / 1.094 GB, free: 74.31 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.008681/1.156, allocations: 2.445 MB / 1.096 GB, free: 73.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/1.156, allocations: 2.781 kB / 1.096 GB, free: 73.21 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.158, allocations: 154.7 kB / 1.096 GB, free: 73.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003021/1.158, allocations: 39.16 kB / 1.096 GB, free: 73.18 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/1.158, allocations: 20.22 kB / 1.096 GB, free: 73.17 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/1.16, allocations: 1.366 MB / 1.098 GB, free: 71.81 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.16, allocations: 1.25 kB / 1.098 GB, free: 71.81 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006312/1.166, allocations: 1.625 MB / 1.099 GB, free: 71.11 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/1.168, allocations: 352.2 kB / 1.1 GB, free: 70.85 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005653/1.168, allocations: 14.83 kB / 1.1 GB, free: 70.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.17, allocations: 122.4 kB / 1.1 GB, free: 70.82 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/1.171, allocations: 55.97 kB / 1.1 GB, free: 70.81 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/1.171, allocations: 30.52 kB / 1.1 GB, free: 70.8 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002769/1.174, allocations: 1.108 MB / 1.101 GB, free: 70.36 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.92e-07/1.174, allocations: 0 / 1.101 GB, free: 70.36 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004889/1.179, allocations: 0.9256 MB / 1.102 GB, free: 70.21 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 (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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008985/1.188, allocations: 2.82 MB / 1.105 GB, free: 68.84 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.006848/1.195, allocations: 1.722 MB / 1.106 GB, free: 68.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/1.195, allocations: 1.562 kB / 1.106 GB, free: 68.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002344/1.197, allocations: 0.5779 MB / 1.107 GB, free: 67.93 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006577/1.204, allocations: 0.7471 MB / 1.108 GB, free: 67.72 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03509/1.239, allocations: 11.02 MB / 1.118 GB, free: 60.94 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/1.24, allocations: 1.363 MB / 1.12 GB, free: 59.93 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003009/1.243, allocations: 425.2 kB / 1.12 GB, free: 59.72 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/1.245, allocations: 0.7238 MB / 1.121 GB, free: 59.11 MB / 0.6823 GB Notification: Performance of SimCode: time 9.32e-07/1.245, allocations: 0 / 1.121 GB, free: 59.11 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1602/1.405, allocations: 47.64 MB / 1.167 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000268/1.405, allocations: 253 kB / 1.168 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.024/6.429, allocations: 3.938 kB / 1.168 GB, free: 15.18 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)