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.0009281/0.0009282, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001119/0.001119, allocations: 168.7 kB / 15.95 MB, free: 200 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.437/1.437, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9925/0.9925, allocations: 135.3 MB / 426.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003244, allocations: 8 kB / 0.507 GB, free: 5.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1703, allocations: 82.31 MB / 0.5874 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.3733/0.5436, allocations: 49.03 MB / 0.6353 GB, free: 25.4 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01873/0.5624, allocations: 14.23 MB / 0.6491 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.565, allocations: 76.78 kB / 0.6492 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.5674, allocations: 0.7566 MB / 0.65 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005035/0.5725, allocations: 1.881 MB / 0.6518 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0046/0.5771, allocations: 1.732 MB / 0.6535 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005536/0.5826, allocations: 5.133 MB / 0.6585 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/0.5846, allocations: 1.221 MB / 0.6597 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00354/0.5881, allocations: 1.543 MB / 0.6612 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00225/0.5904, allocations: 1.258 MB / 0.6624 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.5906, allocations: 67.53 kB / 0.6625 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003469/0.5941, allocations: 1.402 MB / 0.6639 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005937/0.5947, allocations: 409.3 kB / 0.6643 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007047/0.5954, allocations: 398.5 kB / 0.6646 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003705/0.5992, allocations: 2.415 MB / 0.667 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5992, allocations: 0 / 0.667 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.354e-06/0.5992, allocations: 1.406 kB / 0.667 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.49e-05/0.5992, allocations: 0 / 0.667 GB, free: 7.863 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.004061/0.6033, allocations: 2.202 MB / 0.6691 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.6034, allocations: 9.25 kB / 0.6692 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001912/0.6053, allocations: 492.1 kB / 0.6696 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00302/0.6083, allocations: 1.58 MB / 0.6712 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003465/0.6087, allocations: 164.3 kB / 0.6713 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.6089, allocations: 121.3 kB / 0.6714 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.6115, allocations: 1.363 MB / 0.6728 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.6115, allocations: 1.094 kB / 0.6728 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.6116, allocations: 44.7 kB / 0.6728 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.625e-05/0.6117, allocations: 48.34 kB / 0.6729 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002554/0.6142, allocations: 1.134 MB / 0.674 GB, free: 4.281 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.00804/0.6223, allocations: 6.998 MB / 0.6808 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.6248, allocations: 1.444 MB / 0.6822 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009727/0.6258, allocations: 440.1 kB / 0.6826 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004641/0.6305, allocations: 3.099 MB / 0.6857 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.6315, allocations: 468 kB / 0.6861 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004074/0.6319, allocations: 89.41 kB / 0.6862 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 2.645e-06/0.6319, allocations: 0 / 0.6862 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.003039/0.635, allocations: 1.295 MB / 0.6874 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.635, allocations: 61.81 kB / 0.6875 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/0.6373, allocations: 1.543 MB / 0.689 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.539e-05/0.6374, allocations: 42.73 kB / 0.6891 GB, free: 10 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000778/0.6381, allocations: 0.873 MB / 0.6899 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002443/0.6384, allocations: 222.9 kB / 0.6901 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.6385, allocations: 20.62 kB / 0.6901 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.6386, allocations: 347.2 kB / 0.6905 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009377/0.6396, allocations: 380.3 kB / 0.6908 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.6407, allocations: 0.761 MB / 0.6916 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.6417, allocations: 488.4 kB / 0.692 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.6418, allocations: 16.16 kB / 0.6921 GB, free: 7.859 MB / 0.5137 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002802/0.6446, allocations: 1.292 MB / 0.6933 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002746/0.6449, allocations: 446.3 kB / 0.6937 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.6449, allocations: 14.84 kB / 0.6938 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.917e-05/0.6449, allocations: 17.5 kB / 0.6938 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.6459, allocations: 271.7 kB / 0.694 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.574e-05/0.646, allocations: 21.94 kB / 0.6941 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.6473, allocations: 142.1 kB / 0.6942 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.6474, allocations: 52.27 kB / 0.6942 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.354e-06/0.6474, allocations: 3.906 kB / 0.6942 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002363/0.6498, allocations: 1.139 MB / 0.6954 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.6498, allocations: 11.09 kB / 0.6954 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.6499, allocations: 16.75 kB / 0.6954 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.6508, allocations: 272.4 kB / 0.6956 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/0.6509, allocations: 18.66 kB / 0.6957 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.652, allocations: 125.8 kB / 0.6958 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.301e-05/0.6521, allocations: 55.28 kB / 0.6958 GB, free: 5.992 MB / 0.5137 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.0008457/0.653, allocations: 486.5 kB / 0.6963 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002242/0.6532, allocations: 166.3 kB / 0.6965 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/0.6559, allocations: 1.165 MB / 0.6976 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.6559, allocations: 20.44 kB / 0.6976 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.6559, allocations: 0 / 0.6976 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001941/0.6579, allocations: 1.002 MB / 0.6986 GB, free: 4.281 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 postOpt removeSimpleEquations (simulation): time 0.004528/0.6624, allocations: 2.459 MB / 0.701 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.6624, allocations: 3.984 kB / 0.701 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007147/0.6631, allocations: 156.3 kB / 0.7011 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.6633, allocations: 29.91 kB / 0.7012 GB, free: 2.605 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.955e-05/0.6634, allocations: 23.48 kB / 0.7012 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.6646, allocations: 1.367 MB / 0.7025 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.6646, allocations: 0 / 0.7025 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003388/0.668, allocations: 1.623 MB / 0.7041 GB, free: 316 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007321/0.6687, allocations: 361.9 kB / 0.7045 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.669, allocations: 20.19 kB / 0.7045 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009974/0.67, allocations: 115.3 kB / 0.7046 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.6702, allocations: 54.61 kB / 0.7046 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.6702, allocations: 31.22 kB / 0.7047 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001844/0.6721, allocations: 1.097 MB / 0.7057 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6721, allocations: 0 / 0.7057 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002808/0.6749, allocations: 0.8862 MB / 0.7066 GB, free: 15.09 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.001614/0.6765, allocations: 0.6989 MB / 0.7073 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003293/0.6798, allocations: 1.627 MB / 0.7089 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.6799, allocations: 3.984 kB / 0.7089 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.681, allocations: 0.5712 MB / 0.7094 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/0.6842, allocations: 0.7273 MB / 0.7102 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/0.6898, allocations: 3.74 MB / 0.7138 GB, free: 9.402 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000993/0.6909, allocations: 1.36 MB / 0.7151 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001893/0.6928, allocations: 414.1 kB / 0.7155 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003732/0.6931, allocations: 139.4 kB / 0.7157 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of SimCode: time 7.01e-07/0.6931, allocations: 0 / 0.7157 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of Templates: time 0.05157/0.7447, allocations: 29.82 MB / 0.7448 GB, free: 10.03 MB / 0.5606 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)