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.004132/0.004132, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.0009963/0.0009963, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7422/0.7422, allocations: 132.2 MB / 422.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 67.91 kB / 0.5814 GB, free: 7.516 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4427/0.444, allocations: 80.2 MB / 0.6597 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06335/0.5074, allocations: 66.98 MB / 0.7251 GB, free: 3.027 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02488/0.5323, allocations: 16.74 MB / 0.7415 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004695/0.5371, allocations: 103.4 kB / 0.7416 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003842/0.541, allocations: 1.165 MB / 0.7427 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.008171/0.5492, allocations: 2.659 MB / 0.7453 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006429/0.5556, allocations: 2.338 MB / 0.7476 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008559/0.5642, allocations: 5.362 MB / 0.7528 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003545/0.5678, allocations: 1.899 MB / 0.7547 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00491/0.5727, allocations: 2.092 MB / 0.7567 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00245/0.5752, allocations: 1.489 MB / 0.7582 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003594/0.5755, allocations: 192 kB / 0.7583 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004126/0.5797, allocations: 1.977 MB / 0.7603 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005906/0.5803, allocations: 0.5489 MB / 0.7608 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.5816, allocations: 1.135 MB / 0.7619 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005545/0.5872, allocations: 3.667 MB / 0.7655 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5872, allocations: 0 / 0.7655 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5872, allocations: 3.938 kB / 0.7655 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.966e-05/0.5872, allocations: 0 / 0.7655 GB, free: 9.527 MB / 0.5919 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.004165/0.5914, allocations: 2.749 MB / 0.7682 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.5915, allocations: 8.031 kB / 0.7682 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.5928, allocations: 387 kB / 0.7686 GB, free: 6.316 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002981/0.5958, allocations: 1.84 MB / 0.7704 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.338e-05/0.5959, allocations: 98.44 kB / 0.7705 GB, free: 4.328 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.5961, allocations: 132 kB / 0.7706 GB, free: 4.199 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002386/0.5985, allocations: 1.431 MB / 0.772 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.5985, allocations: 3.938 kB / 0.772 GB, free: 2.676 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.5986, allocations: 52 kB / 0.772 GB, free: 2.625 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.507e-05/0.5987, allocations: 46.31 kB / 0.7721 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/0.6009, allocations: 1.098 MB / 0.7731 GB, free: 1.473 MB / 0.5919 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.008634/0.6096, allocations: 7.383 MB / 0.7804 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.6115, allocations: 1.288 MB / 0.7816 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008755/0.6124, allocations: 451.5 kB / 0.782 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003971/0.6163, allocations: 2.639 MB / 0.7846 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009722/0.6173, allocations: 478.6 kB / 0.7851 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=63): time 2.054e-06/0.6173, allocations: 0 / 0.7851 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of matching and sorting (n=63): time 0.002887/0.6202, allocations: 1.214 MB / 0.7863 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.6203, allocations: 111.4 kB / 0.7864 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002096/0.6224, allocations: 1.484 MB / 0.7878 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.147e-05/0.6225, allocations: 45.69 kB / 0.7879 GB, free: 1.418 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009168/0.6234, allocations: 0.9091 MB / 0.7888 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002467/0.6237, allocations: 241.9 kB / 0.789 GB, free: 268 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000308/0.624, allocations: 206.5 kB / 0.7892 GB, free: 56 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.6242, allocations: 349.9 kB / 0.7895 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000866/0.625, allocations: 376.6 kB / 0.7899 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.6261, allocations: 0.7281 MB / 0.7906 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.628, allocations: 1.09 MB / 0.7916 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.6281, allocations: 4 kB / 0.7917 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002549/0.6306, allocations: 1.271 MB / 0.7929 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.529e-05/0.6307, allocations: 44.05 kB / 0.7929 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.6307, allocations: 11.94 kB / 0.7929 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.389e-05/0.6308, allocations: 16.62 kB / 0.793 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009899/0.6317, allocations: 247.6 kB / 0.7932 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.683e-05/0.6318, allocations: 23.92 kB / 0.7932 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009911/0.6328, allocations: 131.9 kB / 0.7933 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.741e-05/0.6329, allocations: 47.98 kB / 0.7934 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0014/0.6343, allocations: 0.6776 MB / 0.7941 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001174/0.6355, allocations: 0.7164 MB / 0.7948 GB, free: 9.855 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001922/0.6374, allocations: 1.055 MB / 0.7958 GB, free: 8.66 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.011e-06/0.6374, allocations: 4.125 kB / 0.7958 GB, free: 8.656 MB / 0.6231 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002537/0.64, allocations: 1.252 MB / 0.797 GB, free: 7.391 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.64, allocations: 41.64 kB / 0.7971 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.64, allocations: 8 kB / 0.7971 GB, free: 7.336 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.6401, allocations: 16 kB / 0.7971 GB, free: 7.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009734/0.641, allocations: 243.6 kB / 0.7973 GB, free: 7.082 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.361e-05/0.6411, allocations: 19.95 kB / 0.7973 GB, free: 7.062 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.6422, allocations: 112.2 kB / 0.7974 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-05/0.6423, allocations: 51.98 kB / 0.7975 GB, free: 6.902 MB / 0.6231 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.000316/0.6426, allocations: 247.9 kB / 0.7977 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/0.6429, allocations: 174.9 kB / 0.7979 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002496/0.6454, allocations: 1.064 MB / 0.7989 GB, free: 5.402 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.6454, allocations: 8.094 kB / 0.7989 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.6454, allocations: 0 / 0.7989 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001689/0.6471, allocations: 0.7846 MB / 0.7997 GB, free: 4.594 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005089/0.6522, allocations: 2.697 MB / 0.8023 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.6522, allocations: 0 / 0.8023 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007244/0.653, allocations: 156 kB / 0.8025 GB, free: 1.66 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001889/0.6532, allocations: 28.84 kB / 0.8025 GB, free: 1.629 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.863e-05/0.6532, allocations: 23.98 kB / 0.8025 GB, free: 1.605 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00153/0.6548, allocations: 1.422 MB / 0.8039 GB, free: 48 kB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.6548, allocations: 7.938 kB / 0.8039 GB, free: 40 kB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003331/0.6581, allocations: 1.571 MB / 0.8055 GB, free: 14.42 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006649/0.6588, allocations: 371.5 kB / 0.8058 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.6591, allocations: 19.94 kB / 0.8058 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009688/0.6601, allocations: 55.94 kB / 0.8059 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.6602, allocations: 60.48 kB / 0.8059 GB, free: 13.91 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.038e-05/0.6603, allocations: 31.98 kB / 0.806 GB, free: 13.88 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001782/0.6621, allocations: 1.074 MB / 0.807 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6621, allocations: 0 / 0.807 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002736/0.6649, allocations: 0.947 MB / 0.8079 GB, free: 11.83 MB / 0.6387 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.001454/0.6663, allocations: 0.5426 MB / 0.8085 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003633/0.67, allocations: 1.57 MB / 0.81 GB, free: 9.699 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.67, allocations: 448 / 0.81 GB, free: 9.699 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.6712, allocations: 0.5567 MB / 0.8106 GB, free: 9.125 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003947/0.6751, allocations: 0.8923 MB / 0.8114 GB, free: 8.273 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.6808, allocations: 3.172 MB / 0.8145 GB, free: 5.043 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.6821, allocations: 1.401 MB / 0.8159 GB, free: 3.609 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001573/0.6837, allocations: 426.4 kB / 0.8163 GB, free: 3.191 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.684, allocations: 139.4 kB / 0.8164 GB, free: 3.055 MB / 0.6387 GB Notification: Performance of SimCode: time 6.62e-07/0.684, allocations: 0 / 0.8164 GB, free: 3.055 MB / 0.6387 GB Notification: Performance of Templates: time 0.05674/0.7407, allocations: 34.75 MB / 0.8504 GB, free: 0.7695 MB / 0.67 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)