Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 108 kB / 15.61 MB, free: 152 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.00132/0.00132, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.294/1.294, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7315/0.7315, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 65.62 kB / 0.5018 GB, free: 8.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1413, allocations: 80.2 MB / 0.5801 GB, free: 8.758 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.2962/0.4375, allocations: 66.98 MB / 0.6455 GB, free: 17.56 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01812/0.4556, allocations: 16.74 MB / 0.6618 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002996/0.4587, allocations: 101 kB / 0.6619 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.4616, allocations: 1.155 MB / 0.6631 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006035/0.4676, allocations: 2.661 MB / 0.6657 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005437/0.4731, allocations: 2.332 MB / 0.6679 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00881/0.4819, allocations: 5.356 MB / 0.6732 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003387/0.4853, allocations: 1.89 MB / 0.675 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005314/0.4907, allocations: 2.091 MB / 0.6771 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003222/0.4939, allocations: 1.491 MB / 0.6785 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0005354/0.4944, allocations: 189.7 kB / 0.6787 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004981/0.4994, allocations: 1.963 MB / 0.6806 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009201/0.5004, allocations: 0.5574 MB / 0.6811 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.5023, allocations: 1.132 MB / 0.6823 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.007394/0.5097, allocations: 3.604 MB / 0.6858 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.5098, allocations: 0 / 0.6858 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.635e-06/0.5098, allocations: 0 / 0.6858 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.044e-05/0.5099, allocations: 4 kB / 0.6858 GB, free: 9.91 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.006146/0.516, allocations: 2.67 MB / 0.6884 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.5161, allocations: 10.72 kB / 0.6884 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.5178, allocations: 372.8 kB / 0.6888 GB, free: 8.059 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003839/0.5217, allocations: 1.745 MB / 0.6905 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003946/0.5221, allocations: 157.1 kB / 0.6906 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000248/0.5224, allocations: 135.8 kB / 0.6907 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002828/0.5252, allocations: 1.439 MB / 0.6921 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.5252, allocations: 6 kB / 0.6921 GB, free: 6.277 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.5254, allocations: 52.56 kB / 0.6922 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.967e-05/0.5254, allocations: 48.78 kB / 0.6922 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/0.5281, allocations: 1.094 MB / 0.6933 GB, free: 5.852 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.01107/0.5392, allocations: 7.419 MB / 0.7006 GB, free: 244 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.5414, allocations: 1.3 MB / 0.7018 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009764/0.5424, allocations: 455.2 kB / 0.7023 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004815/0.5472, allocations: 2.647 MB / 0.7048 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001085/0.5483, allocations: 495 kB / 0.7053 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 2.755e-06/0.5483, allocations: 0 / 0.7053 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=63): time 0.003233/0.5515, allocations: 1.218 MB / 0.7065 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.5516, allocations: 110.2 kB / 0.7066 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002087/0.5537, allocations: 1.478 MB / 0.7081 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.403e-05/0.5538, allocations: 43.7 kB / 0.7081 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00081/0.5547, allocations: 0.8973 MB / 0.709 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/0.5549, allocations: 225.7 kB / 0.7092 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/0.5552, allocations: 213.1 kB / 0.7094 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.5554, allocations: 342 kB / 0.7097 GB, free: 9.434 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008576/0.5562, allocations: 379.5 kB / 0.7101 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.5573, allocations: 0.7317 MB / 0.7108 GB, free: 8.594 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001919/0.5593, allocations: 1.093 MB / 0.7119 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.5593, allocations: 6.688 kB / 0.7119 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002807/0.5621, allocations: 1.279 MB / 0.7131 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.5622, allocations: 35.95 kB / 0.7132 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.5622, allocations: 9.625 kB / 0.7132 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.5622, allocations: 19.12 kB / 0.7132 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009339/0.5631, allocations: 246.4 kB / 0.7134 GB, free: 7.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-05/0.5632, allocations: 22.3 kB / 0.7134 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.5644, allocations: 135.4 kB / 0.7136 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/0.5645, allocations: 55.12 kB / 0.7136 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001403/0.566, allocations: 0.6855 MB / 0.7143 GB, free: 6.516 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001063/0.567, allocations: 0.713 MB / 0.715 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001818/0.5689, allocations: 1.069 MB / 0.716 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.933e-06/0.5689, allocations: 5.656 kB / 0.716 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002575/0.5715, allocations: 1.253 MB / 0.7173 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.5715, allocations: 38.7 kB / 0.7173 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5715, allocations: 8.094 kB / 0.7173 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.5715, allocations: 17.69 kB / 0.7173 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008719/0.5724, allocations: 242.9 kB / 0.7175 GB, free: 4.316 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/0.5725, allocations: 28.73 kB / 0.7176 GB, free: 4.305 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.5737, allocations: 120.2 kB / 0.7177 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.067e-05/0.5738, allocations: 52.33 kB / 0.7177 GB, free: 4.223 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (120): * Single equations (assignments): 118 * 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.0003491/0.5741, allocations: 255.3 kB / 0.718 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002737/0.5744, allocations: 161.3 kB / 0.7181 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/0.5769, allocations: 1.069 MB / 0.7192 GB, free: 2.785 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.5769, allocations: 8 kB / 0.7192 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.5769, allocations: 0 / 0.7192 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001718/0.5787, allocations: 0.7925 MB / 0.72 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004815/0.5835, allocations: 2.692 MB / 0.7226 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.5835, allocations: 4.219 kB / 0.7226 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007489/0.5843, allocations: 159.8 kB / 0.7227 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001672/0.5845, allocations: 24.84 kB / 0.7228 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.5845, allocations: 27.98 kB / 0.7228 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.5856, allocations: 1.429 MB / 0.7242 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5856, allocations: 3.984 kB / 0.7242 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.5888, allocations: 1.572 MB / 0.7257 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006937/0.5895, allocations: 362.5 kB / 0.7261 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.5898, allocations: 16 kB / 0.7261 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008772/0.5907, allocations: 59.94 kB / 0.7262 GB, free: 11.33 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.5908, allocations: 60.42 kB / 0.7262 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.5909, allocations: 35.97 kB / 0.7262 GB, free: 11.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001484/0.5924, allocations: 1.074 MB / 0.7273 GB, free: 10.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5924, allocations: 0 / 0.7273 GB, free: 10.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002622/0.595, allocations: 0.9314 MB / 0.7282 GB, free: 9.207 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.00117/0.5962, allocations: 0.5335 MB / 0.7287 GB, free: 8.684 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003641/0.5998, allocations: 1.652 MB / 0.7303 GB, free: 7.012 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.5998, allocations: 4.375 kB / 0.7303 GB, free: 7.008 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.601, allocations: 0.5512 MB / 0.7309 GB, free: 6.441 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/0.6046, allocations: 0.8969 MB / 0.7318 GB, free: 5.586 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005234/0.6099, allocations: 3.176 MB / 0.7349 GB, free: 2.352 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00093/0.6108, allocations: 1.401 MB / 0.7362 GB, free: 0.9141 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002097/0.6129, allocations: 429.8 kB / 0.7366 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/0.6133, allocations: 139.4 kB / 0.7368 GB, free: 368 kB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.6133, allocations: 0 / 0.7368 GB, free: 368 kB / 0.545 GB Notification: Performance of Templates: time 0.05734/0.6707, allocations: 34.56 MB / 0.7705 GB, free: 14.29 MB / 0.5919 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)