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.00768/0.00768, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001751/0.001751, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.932/0.932, allocations: 135.1 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 71.88 kB / 0.5856 GB, free: 3.305 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4421/0.4435, allocations: 80.91 MB / 0.6647 GB, free: 7.57 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter mov.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05662/0.5002, allocations: 53.27 MB / 0.7167 GB, free: 12.16 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02394/0.5242, allocations: 15.18 MB / 0.7315 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004136/0.5284, allocations: 87.5 kB / 0.7316 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003549/0.5319, allocations: 1.136 MB / 0.7327 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007878/0.5398, allocations: 2.445 MB / 0.7351 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006302/0.5461, allocations: 2.27 MB / 0.7373 GB, free: 7 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00776/0.5539, allocations: 4.631 MB / 0.7418 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00302/0.5569, allocations: 1.641 MB / 0.7434 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005017/0.562, allocations: 1.958 MB / 0.7453 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00257/0.5646, allocations: 1.346 MB / 0.7467 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005591/0.5651, allocations: 168 kB / 0.7468 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004475/0.5696, allocations: 1.848 MB / 0.7486 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008906/0.5705, allocations: 0.5216 MB / 0.7491 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.5724, allocations: 1.03 MB / 0.7501 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005396/0.5778, allocations: 3.334 MB / 0.7534 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.5778, allocations: 0 / 0.7534 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.764e-06/0.5778, allocations: 0 / 0.7534 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.479e-05/0.5778, allocations: 0 / 0.7534 GB, free: 6.465 MB / 0.5762 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.004172/0.582, allocations: 2.525 MB / 0.7559 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.582, allocations: 8.031 kB / 0.7559 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002061/0.5841, allocations: 457.3 kB / 0.7563 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/0.5872, allocations: 1.671 MB / 0.7579 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.946e-05/0.5873, allocations: 90.2 kB / 0.758 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.5875, allocations: 123.9 kB / 0.7581 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.59, allocations: 1.343 MB / 0.7595 GB, free: 44 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.5901, allocations: 4 kB / 0.7595 GB, free: 40 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.5902, allocations: 51.98 kB / 0.7595 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.5902, allocations: 45.94 kB / 0.7595 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/0.5929, allocations: 1.081 MB / 0.7606 GB, free: 14.85 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.00912/0.602, allocations: 7.072 MB / 0.7675 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.6046, allocations: 1.356 MB / 0.7688 GB, free: 5.758 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.6056, allocations: 414.9 kB / 0.7692 GB, free: 5.352 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005404/0.611, allocations: 3.087 MB / 0.7722 GB, free: 1.922 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.6122, allocations: 446.8 kB / 0.7727 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=60): time 3.035e-06/0.6122, allocations: 0 / 0.7727 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of matching and sorting (n=60): time 0.003304/0.6155, allocations: 1.202 MB / 0.7738 GB, free: 256 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.6156, allocations: 63.95 kB / 0.7739 GB, free: 180 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.618, allocations: 1.541 MB / 0.7754 GB, free: 14.63 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/0.6181, allocations: 41.7 kB / 0.7755 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008646/0.6189, allocations: 0.8799 MB / 0.7763 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/0.6192, allocations: 213 kB / 0.7765 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003353/0.6195, allocations: 202.4 kB / 0.7767 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6197, allocations: 341.9 kB / 0.777 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.6207, allocations: 384.6 kB / 0.7774 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.622, allocations: 0.7514 MB / 0.7781 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/0.6243, allocations: 1.113 MB / 0.7792 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.6243, allocations: 4 kB / 0.7792 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.0031/0.6274, allocations: 1.297 MB / 0.7805 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.284e-05/0.6275, allocations: 33.7 kB / 0.7805 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/0.6275, allocations: 12 kB / 0.7805 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.644e-05/0.6276, allocations: 16.62 kB / 0.7805 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6286, allocations: 255.6 kB / 0.7808 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.071e-05/0.6286, allocations: 23.92 kB / 0.7808 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.6299, allocations: 131.7 kB / 0.7809 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.63, allocations: 55.98 kB / 0.781 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001527/0.6315, allocations: 0.6698 MB / 0.7816 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001279/0.6328, allocations: 0.7319 MB / 0.7824 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00219/0.635, allocations: 1.086 MB / 0.7834 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.136e-05/0.6351, allocations: 4 kB / 0.7834 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.003061/0.6381, allocations: 1.27 MB / 0.7847 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.6382, allocations: 37.7 kB / 0.7847 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.6382, allocations: 12 kB / 0.7847 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.6382, allocations: 19.98 kB / 0.7847 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.6392, allocations: 255.7 kB / 0.785 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.896e-05/0.6393, allocations: 27.92 kB / 0.785 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.6405, allocations: 112 kB / 0.7851 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-05/0.6406, allocations: 51.98 kB / 0.7852 GB, free: 3.918 MB / 0.6075 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 (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.0003305/0.6409, allocations: 257.3 kB / 0.7854 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.6413, allocations: 161.9 kB / 0.7856 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/0.6442, allocations: 1.112 MB / 0.7866 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.9e-05/0.6442, allocations: 8 kB / 0.7867 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.6442, allocations: 0 / 0.7867 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002044/0.6463, allocations: 0.9664 MB / 0.7876 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005337/0.6516, allocations: 2.405 MB / 0.7899 GB, free: 14.87 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.6516, allocations: 4 kB / 0.79 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.6524, allocations: 143.8 kB / 0.7901 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001888/0.6526, allocations: 28.84 kB / 0.7901 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.711e-05/0.6527, allocations: 15.98 kB / 0.7901 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.654, allocations: 1.418 MB / 0.7915 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.407e-05/0.654, allocations: 8 kB / 0.7915 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.6575, allocations: 1.531 MB / 0.793 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006906/0.6582, allocations: 350.5 kB / 0.7934 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.6585, allocations: 23.92 kB / 0.7934 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009273/0.6594, allocations: 51.95 kB / 0.7934 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.6596, allocations: 52.48 kB / 0.7935 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-05/0.6597, allocations: 35.97 kB / 0.7935 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001794/0.6615, allocations: 1.089 MB / 0.7946 GB, free: 9.914 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6615, allocations: 0 / 0.7946 GB, free: 9.914 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002539/0.664, allocations: 0.8615 MB / 0.7954 GB, free: 9.051 MB / 0.6231 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 (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.001933/0.666, allocations: 0.7273 MB / 0.7961 GB, free: 8.457 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003778/0.6698, allocations: 1.584 MB / 0.7977 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6698, allocations: 0 / 0.7977 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.671, allocations: 0.5386 MB / 0.7982 GB, free: 6.301 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00351/0.6746, allocations: 0.781 MB / 0.799 GB, free: 5.539 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005928/0.6805, allocations: 3.011 MB / 0.8019 GB, free: 2.488 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/0.6817, allocations: 1.364 MB / 0.8032 GB, free: 1.098 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001602/0.6833, allocations: 417.8 kB / 0.8036 GB, free: 0.6836 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003716/0.6837, allocations: 135.4 kB / 0.8038 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of SimCode: time 6.91e-07/0.6837, allocations: 0 / 0.8038 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of Templates: time 0.05569/0.7394, allocations: 31.68 MB / 0.8347 GB, free: 1.277 MB / 0.6544 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)