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.0008302/0.0008305, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.006153/0.006153, allocations: 171.9 kB / 16.26 MB, free: 6.676 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.417/1.417, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7682/0.7682, allocations: 132.3 MB / 423.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003534, allocations: 8 kB / 0.504 GB, free: 3.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4555/0.4559, allocations: 81.57 MB / 0.5837 GB, free: 4.035 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05568/0.5116, allocations: 51.87 MB / 0.6343 GB, free: 12.31 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02162/0.5333, allocations: 15.11 MB / 0.6491 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002946/0.5363, allocations: 79.5 kB / 0.6491 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.5395, allocations: 0.9445 MB / 0.6501 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00658/0.5461, allocations: 2.153 MB / 0.6522 GB, free: 10.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005459/0.5516, allocations: 2.007 MB / 0.6541 GB, free: 8.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.007423/0.559, allocations: 6.006 MB / 0.66 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/0.5616, allocations: 1.35 MB / 0.6613 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/0.5652, allocations: 1.614 MB / 0.6629 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002552/0.5678, allocations: 1.302 MB / 0.6642 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000421/0.5682, allocations: 64 kB / 0.6642 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003927/0.5721, allocations: 1.711 MB / 0.6659 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007404/0.5729, allocations: 426.1 kB / 0.6663 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.5746, allocations: 0.9261 MB / 0.6672 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004575/0.5792, allocations: 3.165 MB / 0.6703 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.5793, allocations: 4 kB / 0.6703 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.244e-06/0.5793, allocations: 3.938 kB / 0.6703 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.661e-05/0.5793, allocations: 0 / 0.6703 GB, free: 7.441 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.003875/0.5832, allocations: 2.175 MB / 0.6724 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5832, allocations: 8.031 kB / 0.6724 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002126/0.5854, allocations: 497.5 kB / 0.6729 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/0.5885, allocations: 1.643 MB / 0.6745 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/0.589, allocations: 158.4 kB / 0.6747 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.5892, allocations: 120 kB / 0.6748 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/0.5918, allocations: 1.373 MB / 0.6761 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.5919, allocations: 3.938 kB / 0.6761 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.592, allocations: 48 kB / 0.6762 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.65e-05/0.592, allocations: 46.02 kB / 0.6762 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002705/0.5948, allocations: 1.132 MB / 0.6773 GB, free: 32 kB / 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.009273/0.604, allocations: 6.998 MB / 0.6842 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.6066, allocations: 1.429 MB / 0.6855 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.6076, allocations: 439.4 kB / 0.686 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00525/0.6129, allocations: 3.137 MB / 0.689 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001078/0.614, allocations: 458.9 kB / 0.6895 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004673/0.6145, allocations: 87.34 kB / 0.6896 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 3.256e-06/0.6145, allocations: 0 / 0.6896 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.003196/0.6177, allocations: 1.276 MB / 0.6908 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.6177, allocations: 59.97 kB / 0.6909 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.6197, allocations: 1.513 MB / 0.6923 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.821e-05/0.6198, allocations: 37.7 kB / 0.6924 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007229/0.6205, allocations: 0.8878 MB / 0.6932 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.6207, allocations: 224.8 kB / 0.6934 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.6209, allocations: 85.67 kB / 0.6935 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001889/0.6211, allocations: 341.9 kB / 0.6939 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.6221, allocations: 397.8 kB / 0.6942 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.6234, allocations: 0.7749 MB / 0.695 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.6256, allocations: 1.16 MB / 0.6961 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.6256, allocations: 4 kB / 0.6961 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002983/0.6286, allocations: 1.332 MB / 0.6974 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003191/0.6289, allocations: 452.3 kB / 0.6979 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.629, allocations: 15.94 kB / 0.6979 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.941e-05/0.629, allocations: 16 kB / 0.6979 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.6301, allocations: 267.6 kB / 0.6981 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.853e-05/0.6301, allocations: 23.92 kB / 0.6982 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.6313, allocations: 124.5 kB / 0.6983 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.491e-05/0.6314, allocations: 51.98 kB / 0.6983 GB, free: 8.938 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.824e-06/0.6314, allocations: 4 kB / 0.6983 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002491/0.6339, allocations: 1.145 MB / 0.6995 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.634, allocations: 12 kB / 0.6995 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.634, allocations: 16 kB / 0.6995 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009895/0.635, allocations: 264 kB / 0.6997 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.635, allocations: 23.94 kB / 0.6998 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.6361, allocations: 132.3 kB / 0.6999 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.923e-05/0.6362, allocations: 51.98 kB / 0.6999 GB, free: 7.293 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.0008138/0.6371, allocations: 476.7 kB / 0.7004 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.6373, allocations: 169.9 kB / 0.7006 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00271/0.64, allocations: 1.158 MB / 0.7017 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.64, allocations: 11.98 kB / 0.7017 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.64, allocations: 0 / 0.7017 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00207/0.6421, allocations: 0.9978 MB / 0.7027 GB, free: 4.422 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.004791/0.6469, allocations: 2.452 MB / 0.7051 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.6469, allocations: 3.984 kB / 0.7051 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007972/0.6477, allocations: 163.8 kB / 0.7052 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.6479, allocations: 24.84 kB / 0.7052 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.868e-05/0.648, allocations: 23.92 kB / 0.7053 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.6491, allocations: 1.315 MB / 0.7066 GB, free: 244 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.6491, allocations: 0 / 0.7066 GB, free: 244 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003481/0.6526, allocations: 1.612 MB / 0.7081 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006041/0.6532, allocations: 338.7 kB / 0.7085 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/0.6534, allocations: 23.98 kB / 0.7085 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.6544, allocations: 111.8 kB / 0.7086 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.6546, allocations: 64.36 kB / 0.7086 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.795e-05/0.6546, allocations: 32.09 kB / 0.7087 GB, free: 14.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001561/0.6562, allocations: 1.074 MB / 0.7097 GB, free: 12.92 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6562, allocations: 0 / 0.7097 GB, free: 12.92 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002445/0.6587, allocations: 0.8654 MB / 0.7106 GB, free: 12.05 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.001671/0.6604, allocations: 0.7222 MB / 0.7113 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003668/0.664, allocations: 1.644 MB / 0.7129 GB, free: 9.832 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.6641, allocations: 0 / 0.7129 GB, free: 9.832 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.6654, allocations: 0.5693 MB / 0.7134 GB, free: 9.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003828/0.6692, allocations: 0.7205 MB / 0.7141 GB, free: 8.539 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005719/0.675, allocations: 3.794 MB / 0.7178 GB, free: 4.707 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009415/0.6759, allocations: 1.36 MB / 0.7192 GB, free: 3.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001759/0.6777, allocations: 420 kB / 0.7196 GB, free: 2.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.678, allocations: 135.4 kB / 0.7197 GB, free: 2.777 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/0.6781, allocations: 0 / 0.7197 GB, free: 2.777 MB / 0.545 GB Notification: Performance of Templates: time 0.05032/0.7284, allocations: 29.88 MB / 0.7489 GB, free: 5.32 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)