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: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008954/0.0008954, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.0011/0.0011, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.736/0.736, allocations: 132.4 MB / 423.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002846/0.0002847, allocations: 8 kB / 0.5034 GB, free: 4.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3549, allocations: 81.58 MB / 0.5831 GB, free: 3.949 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.0462/0.4012, allocations: 49.04 MB / 0.631 GB, free: 14.75 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01862/0.4198, allocations: 14.23 MB / 0.6449 GB, free: 1.098 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.4212, allocations: 71.56 kB / 0.6449 GB, free: 1.027 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.423, allocations: 0.7533 MB / 0.6457 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003595/0.4267, allocations: 1.891 MB / 0.6475 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00378/0.4304, allocations: 1.721 MB / 0.6492 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0047/0.4352, allocations: 5.141 MB / 0.6542 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.437, allocations: 1.226 MB / 0.6554 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002652/0.4396, allocations: 1.54 MB / 0.6569 GB, free: 4.727 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.4414, allocations: 1.256 MB / 0.6581 GB, free: 3.465 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002329/0.4417, allocations: 68 kB / 0.6582 GB, free: 3.398 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002421/0.4441, allocations: 1.396 MB / 0.6596 GB, free: 2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004105/0.4445, allocations: 414.2 kB / 0.66 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.4449, allocations: 404.6 kB / 0.6603 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002172/0.4471, allocations: 2.412 MB / 0.6627 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4471, allocations: 0 / 0.6627 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4471, allocations: 3.938 kB / 0.6627 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.711e-05/0.4471, allocations: 0 / 0.6627 GB, free: 14.77 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.003303/0.4504, allocations: 2.2 MB / 0.6649 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.4505, allocations: 16.03 kB / 0.6649 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001821/0.4523, allocations: 485 kB / 0.6653 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.4549, allocations: 1.578 MB / 0.6669 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003394/0.4553, allocations: 154.4 kB / 0.667 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.4555, allocations: 116 kB / 0.6671 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.4579, allocations: 1.369 MB / 0.6685 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.4579, allocations: 7.938 kB / 0.6685 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.458, allocations: 40 kB / 0.6685 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/0.4581, allocations: 46.08 kB / 0.6686 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002521/0.4606, allocations: 1.144 MB / 0.6697 GB, free: 7.41 MB / 0.4981 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.007523/0.4681, allocations: 6.994 MB / 0.6765 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.4705, allocations: 1.452 MB / 0.6779 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009187/0.4714, allocations: 439 kB / 0.6783 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003992/0.4754, allocations: 3.099 MB / 0.6814 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.4765, allocations: 470.8 kB / 0.6818 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003132/0.4768, allocations: 87.3 kB / 0.6819 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 2.254e-06/0.4768, allocations: 0 / 0.6819 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.002938/0.4797, allocations: 1.291 MB / 0.6832 GB, free: 8.566 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.4798, allocations: 59.95 kB / 0.6832 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.4816, allocations: 1.553 MB / 0.6847 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.371e-05/0.4817, allocations: 41.7 kB / 0.6848 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006481/0.4823, allocations: 0.8725 MB / 0.6856 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.4825, allocations: 224.8 kB / 0.6858 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.374e-05/0.4826, allocations: 20 kB / 0.6859 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4827, allocations: 337.9 kB / 0.6862 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008826/0.4836, allocations: 385.7 kB / 0.6865 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.4847, allocations: 0.7593 MB / 0.6873 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.4857, allocations: 0.4888 MB / 0.6878 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.4858, allocations: 7.938 kB / 0.6878 GB, free: 3.629 MB / 0.5137 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00251/0.4883, allocations: 1.301 MB / 0.689 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002434/0.4885, allocations: 441.2 kB / 0.6895 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.4886, allocations: 12 kB / 0.6895 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.4886, allocations: 16 kB / 0.6895 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.4896, allocations: 271.6 kB / 0.6898 GB, free: 1.438 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/0.4896, allocations: 19.94 kB / 0.6898 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.4907, allocations: 146.3 kB / 0.6899 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.885e-05/0.4908, allocations: 51.98 kB / 0.69 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.775e-06/0.4909, allocations: 4 kB / 0.69 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002264/0.4931, allocations: 1.13 MB / 0.6911 GB, free: 88 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.4931, allocations: 12 kB / 0.6911 GB, free: 76 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.4932, allocations: 19.95 kB / 0.6911 GB, free: 56 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009872/0.4942, allocations: 271.8 kB / 0.6914 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/0.4942, allocations: 27.86 kB / 0.6914 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009924/0.4952, allocations: 124.5 kB / 0.6915 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.565e-05/0.4953, allocations: 51.98 kB / 0.6916 GB, free: 15.59 MB / 0.5294 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0005522/0.4959, allocations: 477 kB / 0.692 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.496, allocations: 169.8 kB / 0.6922 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.4986, allocations: 1.17 MB / 0.6933 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4986, allocations: 15.97 kB / 0.6933 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4986, allocations: 0 / 0.6933 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001908/0.5005, allocations: 1.017 MB / 0.6943 GB, free: 12.68 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.003925/0.5045, allocations: 2.452 MB / 0.6967 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5045, allocations: 4 kB / 0.6967 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007433/0.5052, allocations: 151.9 kB / 0.6969 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/0.5054, allocations: 28.84 kB / 0.6969 GB, free: 9.98 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.5055, allocations: 27.97 kB / 0.6969 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.5066, allocations: 1.355 MB / 0.6982 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5066, allocations: 4.031 kB / 0.6982 GB, free: 8.461 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003044/0.5096, allocations: 1.627 MB / 0.6998 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.5101, allocations: 358.5 kB / 0.7002 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.5103, allocations: 16 kB / 0.7002 GB, free: 6.422 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009802/0.5113, allocations: 115.9 kB / 0.7003 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.5115, allocations: 60.41 kB / 0.7004 GB, free: 6.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.587e-05/0.5115, allocations: 27.98 kB / 0.7004 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001439/0.513, allocations: 1.101 MB / 0.7015 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/0.513, allocations: 0 / 0.7015 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002197/0.5152, allocations: 0.8849 MB / 0.7023 GB, free: 4.207 MB / 0.5294 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 (70): * Single equations (assignments): 61 * 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.001447/0.5166, allocations: 0.6947 MB / 0.703 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003153/0.5198, allocations: 1.633 MB / 0.7046 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5198, allocations: 0 / 0.7046 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.5209, allocations: 0.5722 MB / 0.7052 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.5237, allocations: 0.7251 MB / 0.7059 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005079/0.5288, allocations: 3.739 MB / 0.7095 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000891/0.5297, allocations: 1.368 MB / 0.7109 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00151/0.5313, allocations: 405.3 kB / 0.7112 GB, free: 11.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/0.5316, allocations: 139.3 kB / 0.7114 GB, free: 11 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.5316, allocations: 0 / 0.7114 GB, free: 11 MB / 0.545 GB Notification: Performance of Templates: time 0.04677/0.5784, allocations: 29.83 MB / 0.7405 GB, free: 13.6 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (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 & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)