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.0008201/0.0008201, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005388/0.005388, allocations: 170 kB / 16.27 MB, free: 6.652 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7853/0.7853, allocations: 132.4 MB / 423.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003426, allocations: 12 kB / 0.504 GB, free: 3.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.4162, allocations: 81.58 MB / 0.5837 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06628/0.4825, allocations: 65.32 MB / 0.6475 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02619/0.5088, allocations: 16.65 MB / 0.6637 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004599/0.5134, allocations: 83.5 kB / 0.6638 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004052/0.5175, allocations: 0.9871 MB / 0.6648 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.008469/0.526, allocations: 2.44 MB / 0.6671 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006836/0.5328, allocations: 2.1 MB / 0.6692 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.009646/0.5425, allocations: 6.969 MB / 0.676 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003047/0.5456, allocations: 1.578 MB / 0.6775 GB, free: 36 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004269/0.5499, allocations: 1.746 MB / 0.6792 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002883/0.5528, allocations: 1.427 MB / 0.6806 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003896/0.5532, allocations: 72 kB / 0.6807 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005701/0.5589, allocations: 1.821 MB / 0.6825 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0007687/0.5597, allocations: 442.1 kB / 0.6829 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.5613, allocations: 1.023 MB / 0.6839 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005051/0.5664, allocations: 3.458 MB / 0.6873 GB, free: 6.016 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5664, allocations: 0 / 0.6873 GB, free: 6.016 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.194e-06/0.5664, allocations: 0 / 0.6873 GB, free: 6.016 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.011e-05/0.5665, allocations: 4 kB / 0.6873 GB, free: 6.012 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.00445/0.5709, allocations: 2.29 MB / 0.6895 GB, free: 3.648 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.571, allocations: 12.03 kB / 0.6895 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/0.5725, allocations: 389.9 kB / 0.6899 GB, free: 3.254 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003412/0.5759, allocations: 1.811 MB / 0.6917 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004163/0.5763, allocations: 170.4 kB / 0.6918 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/0.5765, allocations: 139.9 kB / 0.692 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.5794, allocations: 1.442 MB / 0.6934 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.5794, allocations: 0 / 0.6934 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.5796, allocations: 52 kB / 0.6934 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.192e-05/0.5796, allocations: 50.3 kB / 0.6935 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002604/0.5822, allocations: 1.141 MB / 0.6946 GB, free: 14.31 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 preOpt removeSimpleEquations (simulation): time 0.01027/0.5925, allocations: 7.373 MB / 0.7018 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.595, allocations: 1.339 MB / 0.7031 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.5961, allocations: 470.6 kB / 0.7035 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005135/0.6012, allocations: 2.662 MB / 0.7061 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.6024, allocations: 0.5024 MB / 0.7066 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006643/0.6031, allocations: 87.34 kB / 0.7067 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=64): time 4.388e-06/0.6031, allocations: 0 / 0.7067 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of matching and sorting (n=64): time 0.0033/0.6064, allocations: 1.264 MB / 0.708 GB, free: 15.66 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.063e-05/0.6065, allocations: 111.4 kB / 0.7081 GB, free: 15.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002296/0.6088, allocations: 1.449 MB / 0.7095 GB, free: 14.07 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.892e-05/0.6089, allocations: 45.69 kB / 0.7095 GB, free: 14.02 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008197/0.6097, allocations: 0.8956 MB / 0.7104 GB, free: 13.12 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/0.61, allocations: 224.8 kB / 0.7106 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.6101, allocations: 93.66 kB / 0.7107 GB, free: 12.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.6103, allocations: 349.9 kB / 0.711 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009797/0.6112, allocations: 389.7 kB / 0.7114 GB, free: 12.07 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.6125, allocations: 0.7429 MB / 0.7121 GB, free: 11.17 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/0.6147, allocations: 1.12 MB / 0.7132 GB, free: 9.918 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.6148, allocations: 4 kB / 0.7132 GB, free: 9.914 MB / 0.545 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003013/0.6178, allocations: 1.305 MB / 0.7145 GB, free: 8.594 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003377/0.6181, allocations: 413.7 kB / 0.7149 GB, free: 8.039 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.6182, allocations: 8 kB / 0.7149 GB, free: 8.031 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.6182, allocations: 16 kB / 0.7149 GB, free: 8.016 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.6193, allocations: 259.6 kB / 0.7152 GB, free: 7.762 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.178e-05/0.6193, allocations: 23.86 kB / 0.7152 GB, free: 7.738 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.6208, allocations: 132.4 kB / 0.7153 GB, free: 7.609 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.6209, allocations: 55.97 kB / 0.7154 GB, free: 7.555 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.6209, allocations: 4 kB / 0.7154 GB, free: 7.551 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002736/0.6237, allocations: 1.114 MB / 0.7165 GB, free: 6.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.832e-05/0.6237, allocations: 12.69 kB / 0.7165 GB, free: 6.418 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.6238, allocations: 19.94 kB / 0.7165 GB, free: 6.398 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.6248, allocations: 259.6 kB / 0.7167 GB, free: 6.145 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.211e-05/0.6249, allocations: 23.94 kB / 0.7168 GB, free: 6.121 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.6265, allocations: 132.4 kB / 0.7169 GB, free: 5.992 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.6266, allocations: 51.98 kB / 0.7169 GB, free: 5.941 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * 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.001003/0.6277, allocations: 484.7 kB / 0.7174 GB, free: 5.457 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.6281, allocations: 169.9 kB / 0.7176 GB, free: 5.289 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.6309, allocations: 1.107 MB / 0.7186 GB, free: 4.176 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.631, allocations: 8 kB / 0.7186 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.631, allocations: 4 kB / 0.7186 GB, free: 4.164 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001916/0.6329, allocations: 0.8159 MB / 0.7194 GB, free: 3.332 MB / 0.545 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.005537/0.6385, allocations: 2.704 MB / 0.7221 GB, free: 0.543 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.6385, allocations: 3.938 kB / 0.7221 GB, free: 0.5391 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008189/0.6393, allocations: 164 kB / 0.7222 GB, free: 388 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.6395, allocations: 24.84 kB / 0.7223 GB, free: 360 kB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.484e-05/0.6396, allocations: 27.92 kB / 0.7223 GB, free: 332 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.6407, allocations: 1.323 MB / 0.7236 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.6407, allocations: 7.875 kB / 0.7236 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/0.6443, allocations: 1.631 MB / 0.7252 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008071/0.6451, allocations: 358.6 kB / 0.7255 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004252/0.6456, allocations: 23.94 kB / 0.7256 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.6469, allocations: 111.9 kB / 0.7257 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.647, allocations: 60.47 kB / 0.7257 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.831e-05/0.6471, allocations: 35.98 kB / 0.7258 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001874/0.649, allocations: 1.05 MB / 0.7268 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.11e-07/0.649, allocations: 0 / 0.7268 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003133/0.6521, allocations: 0.9509 MB / 0.7277 GB, free: 10.56 MB / 0.5606 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 (76): * Single equations (assignments): 68 * 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.001365/0.6535, allocations: 0.5007 MB / 0.7282 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003885/0.6574, allocations: 1.639 MB / 0.7298 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6574, allocations: 0 / 0.7298 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.6588, allocations: 0.5735 MB / 0.7304 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005168/0.664, allocations: 0.8485 MB / 0.7312 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006574/0.6706, allocations: 3.928 MB / 0.735 GB, free: 3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.6719, allocations: 1.401 MB / 0.7364 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002075/0.6739, allocations: 421.9 kB / 0.7368 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004163/0.6744, allocations: 139.3 kB / 0.7369 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of SimCode: time 1.092e-06/0.6744, allocations: 0 / 0.7369 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of Templates: time 0.0577/0.7321, allocations: 32.64 MB / 0.7688 GB, free: 0.8203 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)