Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000741/0.0007411, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004044/0.004044, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7104/0.7104, allocations: 132.3 MB / 423.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002903/0.0002903, allocations: 12 kB / 0.5041 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3435, allocations: 81.57 MB / 0.5837 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04707/0.3906, allocations: 51.87 MB / 0.6344 GB, free: 12.31 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01976/0.4104, allocations: 15.09 MB / 0.6491 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002052/0.4125, allocations: 79.5 kB / 0.6492 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002334/0.4148, allocations: 0.9527 MB / 0.6501 GB, free: 12.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004641/0.4195, allocations: 2.15 MB / 0.6522 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0043/0.4238, allocations: 2.014 MB / 0.6542 GB, free: 8.094 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005548/0.4293, allocations: 5.999 MB / 0.6601 GB, free: 2.086 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001631/0.431, allocations: 1.357 MB / 0.6614 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.4333, allocations: 1.614 MB / 0.663 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.4347, allocations: 1.299 MB / 0.6642 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.4349, allocations: 68 kB / 0.6643 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002754/0.4376, allocations: 1.704 MB / 0.666 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003794/0.438, allocations: 430.1 kB / 0.6664 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007848/0.4388, allocations: 0.9338 MB / 0.6673 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002963/0.4418, allocations: 3.162 MB / 0.6704 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.4418, allocations: 3.938 kB / 0.6704 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.4418, allocations: 0 / 0.6704 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.4418, allocations: 0 / 0.6704 GB, free: 7.449 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003315/0.4452, allocations: 2.179 MB / 0.6725 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.4452, allocations: 8.031 kB / 0.6725 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.4454, allocations: 165.2 kB / 0.6727 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001981/0.4474, allocations: 497.3 kB / 0.6731 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002636/0.45, allocations: 1.643 MB / 0.6748 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003866/0.4504, allocations: 162.3 kB / 0.6749 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.4506, allocations: 116 kB / 0.675 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.453, allocations: 1.369 MB / 0.6764 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.4531, allocations: 4 kB / 0.6764 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.4532, allocations: 55.88 kB / 0.6764 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-05/0.4532, allocations: 38.08 kB / 0.6764 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002618/0.4559, allocations: 1.136 MB / 0.6776 GB, free: 15.86 MB / 0.5137 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.007905/0.4638, allocations: 6.998 MB / 0.6844 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002408/0.4662, allocations: 1.425 MB / 0.6858 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009685/0.4672, allocations: 447.4 kB / 0.6862 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00461/0.4718, allocations: 3.126 MB / 0.6893 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001013/0.4728, allocations: 470.8 kB / 0.6897 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003086/0.4732, allocations: 75.41 kB / 0.6898 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 1.954e-06/0.4732, allocations: 0 / 0.6898 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.002954/0.4761, allocations: 1.272 MB / 0.691 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.4762, allocations: 59.97 kB / 0.6911 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.4779, allocations: 1.521 MB / 0.6926 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.922e-05/0.478, allocations: 45.7 kB / 0.6926 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006348/0.4786, allocations: 0.8762 MB / 0.6935 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.4788, allocations: 224.8 kB / 0.6937 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.4789, allocations: 89.66 kB / 0.6938 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.479, allocations: 345.9 kB / 0.6941 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009294/0.48, allocations: 397.7 kB / 0.6945 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.4811, allocations: 0.7749 MB / 0.6952 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.4832, allocations: 1.16 MB / 0.6964 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.4832, allocations: 8.031 kB / 0.6964 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002566/0.4858, allocations: 1.329 MB / 0.6977 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.4861, allocations: 445.7 kB / 0.6981 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4861, allocations: 8 kB / 0.6981 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.4861, allocations: 20 kB / 0.6981 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009861/0.4871, allocations: 263.6 kB / 0.6984 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.588e-05/0.4872, allocations: 23.92 kB / 0.6984 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.4882, allocations: 124.5 kB / 0.6985 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.864e-05/0.4883, allocations: 59.98 kB / 0.6986 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.593e-06/0.4883, allocations: 3.938 kB / 0.6986 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002315/0.4906, allocations: 1.141 MB / 0.6997 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.4906, allocations: 16 kB / 0.6997 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.4907, allocations: 19.94 kB / 0.6997 GB, free: 7.586 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009461/0.4916, allocations: 264.2 kB / 0.7 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.4917, allocations: 23.92 kB / 0.7 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009426/0.4926, allocations: 128.4 kB / 0.7001 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.337e-05/0.4927, allocations: 55.98 kB / 0.7002 GB, free: 7.125 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,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): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0005473/0.4933, allocations: 472.7 kB / 0.7006 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.4934, allocations: 169.9 kB / 0.7008 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002548/0.496, allocations: 1.162 MB / 0.7019 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.496, allocations: 8 kB / 0.7019 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.496, allocations: 0 / 0.7019 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001935/0.498, allocations: 1.006 MB / 0.7029 GB, free: 4.25 MB / 0.5294 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.004065/0.502, allocations: 2.456 MB / 0.7053 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5021, allocations: 3.938 kB / 0.7053 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007416/0.5028, allocations: 155.8 kB / 0.7055 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001374/0.5029, allocations: 24.84 kB / 0.7055 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.043e-05/0.503, allocations: 19.98 kB / 0.7055 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008881/0.5039, allocations: 1.323 MB / 0.7068 GB, free: 68 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5039, allocations: 4.031 kB / 0.7068 GB, free: 64 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.5071, allocations: 1.608 MB / 0.7084 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000436/0.5075, allocations: 342.7 kB / 0.7087 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.5077, allocations: 20 kB / 0.7087 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009401/0.5087, allocations: 115.7 kB / 0.7088 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.5088, allocations: 60.42 kB / 0.7089 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.945e-05/0.5089, allocations: 23.98 kB / 0.7089 GB, free: 13.85 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001292/0.5102, allocations: 1.081 MB / 0.71 GB, free: 12.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5102, allocations: 0 / 0.71 GB, free: 12.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002045/0.5122, allocations: 0.8615 MB / 0.7108 GB, free: 11.88 MB / 0.545 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.s[1],mov.filter.s[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 (71): * Single equations (assignments): 62 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004765/0.517, allocations: 2.769 MB / 0.7135 GB, free: 9.246 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003248/0.5203, allocations: 1.647 MB / 0.7151 GB, free: 7.582 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5203, allocations: 1.812 kB / 0.7151 GB, free: 7.582 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.5214, allocations: 0.5681 MB / 0.7157 GB, free: 6.996 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003229/0.5247, allocations: 0.7234 MB / 0.7164 GB, free: 6.289 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/0.5471, allocations: 13.6 MB / 0.7297 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009527/0.548, allocations: 1.36 MB / 0.731 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001683/0.5497, allocations: 413.8 kB / 0.7314 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009088/0.5507, allocations: 0.7101 MB / 0.7321 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of SimCode: time 9.32e-07/0.5507, allocations: 0 / 0.7321 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6211/1.172, allocations: 42.77 MB / 0.7738 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/1.172, allocations: 255.5 kB / 0.7741 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.875/4.047, allocations: 4 kB / 0.7741 GB, free: 10.79 MB / 0.6075 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)