Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0009231/0.0009232, allocations: 99.5 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 180.2 kB / 16.92 MB, free: 6.918 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.336/1.336, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9444/0.9444, allocations: 135.3 MB / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.000348, allocations: 13.38 kB / 0.5082 GB, free: 4.77 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1449, allocations: 82.3 MB / 0.5886 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.3525/0.4974, allocations: 51.85 MB / 0.6392 GB, free: 22.92 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01832/0.5158, allocations: 15.1 MB / 0.654 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003167/0.519, allocations: 77.12 kB / 0.6541 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.5218, allocations: 0.9544 MB / 0.655 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00659/0.5284, allocations: 2.15 MB / 0.6571 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005537/0.534, allocations: 2.018 MB / 0.6591 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.007644/0.5417, allocations: 5.994 MB / 0.6649 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0029/0.5446, allocations: 1.352 MB / 0.6662 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00562/0.5502, allocations: 1.61 MB / 0.6678 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00473/0.555, allocations: 1.305 MB / 0.6691 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005161/0.5555, allocations: 66.34 kB / 0.6692 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00646/0.562, allocations: 1.703 MB / 0.6708 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.5631, allocations: 430.5 kB / 0.6712 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00238/0.5655, allocations: 0.9314 MB / 0.6721 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006437/0.5719, allocations: 2.427 MB / 0.6745 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.572, allocations: 0.5625 kB / 0.6745 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.607e-06/0.572, allocations: 3.938 kB / 0.6745 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.631e-05/0.5721, allocations: 5.406 kB / 0.6745 GB, free: 3.316 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.006418/0.5785, allocations: 2.169 MB / 0.6766 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.5786, allocations: 10.14 kB / 0.6766 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0027/0.5813, allocations: 491.7 kB / 0.6771 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003904/0.5852, allocations: 1.653 MB / 0.6787 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004134/0.5856, allocations: 164.3 kB / 0.6789 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002601/0.5859, allocations: 120.3 kB / 0.679 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002982/0.5889, allocations: 1.373 MB / 0.6803 GB, free: 100 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.574e-05/0.589, allocations: 5.344 kB / 0.6803 GB, free: 96 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.5891, allocations: 48.42 kB / 0.6804 GB, free: 60 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.609e-05/0.5892, allocations: 40.62 kB / 0.6804 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003065/0.5922, allocations: 1.136 MB / 0.6815 GB, free: 15.67 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.0114/0.6036, allocations: 6.989 MB / 0.6884 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.6064, allocations: 1.427 MB / 0.6898 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.6074, allocations: 442.3 kB / 0.6902 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006007/0.6134, allocations: 3.14 MB / 0.6932 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.6146, allocations: 460.8 kB / 0.6937 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007209/0.6153, allocations: 85.86 kB / 0.6938 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 2.615e-06/0.6153, allocations: 0 / 0.6938 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.003289/0.6186, allocations: 1.273 MB / 0.695 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.6187, allocations: 62.86 kB / 0.6951 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/0.6209, allocations: 1.518 MB / 0.6966 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.085e-05/0.621, allocations: 38.3 kB / 0.6966 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007334/0.6217, allocations: 0.8874 MB / 0.6975 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.6219, allocations: 215.3 kB / 0.6977 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.622, allocations: 86.03 kB / 0.6977 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.6222, allocations: 343 kB / 0.6981 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.6232, allocations: 397.7 kB / 0.6984 GB, free: 4.078 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.6244, allocations: 0.773 MB / 0.6992 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00216/0.6266, allocations: 1.16 MB / 0.7003 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/0.6266, allocations: 3.781 kB / 0.7003 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003023/0.6296, allocations: 1.349 MB / 0.7017 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003053/0.63, allocations: 437.3 kB / 0.7021 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.63, allocations: 18.22 kB / 0.7021 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.085e-05/0.63, allocations: 16.34 kB / 0.7021 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.6311, allocations: 270.7 kB / 0.7024 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.458e-05/0.6311, allocations: 20.66 kB / 0.7024 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.6326, allocations: 123.6 kB / 0.7025 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.6327, allocations: 57.56 kB / 0.7026 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.6328, allocations: 4.031 kB / 0.7026 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002478/0.6352, allocations: 1.139 MB / 0.7037 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.6353, allocations: 11.03 kB / 0.7037 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.6353, allocations: 19.97 kB / 0.7037 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009678/0.6363, allocations: 265 kB / 0.704 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/0.6363, allocations: 25.92 kB / 0.704 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.6377, allocations: 126.3 kB / 0.7041 GB, free: 460 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-05/0.6378, allocations: 52.72 kB / 0.7042 GB, free: 448 kB / 0.5137 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.001001/0.6388, allocations: 479.7 kB / 0.7046 GB, free: 76 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/0.6391, allocations: 165.7 kB / 0.7048 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/0.6418, allocations: 1.163 MB / 0.7059 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.6418, allocations: 11.47 kB / 0.7059 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.6419, allocations: 0 / 0.7059 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002069/0.6439, allocations: 1.001 MB / 0.7069 GB, free: 14.74 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.004796/0.6487, allocations: 2.437 MB / 0.7093 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.6488, allocations: 4.062 kB / 0.7093 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000736/0.6495, allocations: 152.8 kB / 0.7094 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.6497, allocations: 38.41 kB / 0.7095 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.674e-05/0.6498, allocations: 21.55 kB / 0.7095 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009886/0.6507, allocations: 1.315 MB / 0.7108 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6508, allocations: 0 / 0.7108 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003323/0.6541, allocations: 1.616 MB / 0.7123 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007636/0.6549, allocations: 343.1 kB / 0.7127 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.6551, allocations: 17.38 kB / 0.7127 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009742/0.6561, allocations: 112.4 kB / 0.7128 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.6562, allocations: 61.86 kB / 0.7129 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.739e-05/0.6563, allocations: 35.09 kB / 0.7129 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001477/0.6578, allocations: 1.079 MB / 0.7139 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6578, allocations: 0 / 0.7139 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002673/0.6605, allocations: 0.8739 MB / 0.7148 GB, free: 9.016 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 (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.00176/0.6622, allocations: 0.7122 MB / 0.7155 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00355/0.6658, allocations: 1.64 MB / 0.7171 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6658, allocations: 0 / 0.7171 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.667, allocations: 0.5623 MB / 0.7176 GB, free: 6.223 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003775/0.6708, allocations: 0.7215 MB / 0.7183 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005696/0.6765, allocations: 3.865 MB / 0.7221 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008557/0.6774, allocations: 1.356 MB / 0.7234 GB, free: 212 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005003/0.6779, allocations: 151.3 kB / 0.7236 GB, free: 64 kB / 0.5294 GB Notification: Performance of SimCode: time 5.21e-07/0.6779, allocations: 0 / 0.7236 GB, free: 64 kB / 0.5294 GB Notification: Performance of Templates: time 0.0445/0.7224, allocations: 32.68 MB / 0.7555 GB, free: 15.6 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)