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.001265/0.001265, allocations: 106.2 kB / 16.27 MB, free: 6.414 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.001293/0.001293, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.423/1.423, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8086/0.8086, allocations: 132.2 MB / 423.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 60.14 kB / 0.5024 GB, free: 11.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4166/0.4181, allocations: 80.2 MB / 0.5807 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04426/0.4624, allocations: 53.26 MB / 0.6327 GB, free: 9.016 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02456/0.487, allocations: 15.19 MB / 0.6476 GB, free: 9.777 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003676/0.4907, allocations: 87.5 kB / 0.6477 GB, free: 9.691 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003687/0.4944, allocations: 1.114 MB / 0.6488 GB, free: 8.574 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008291/0.5027, allocations: 2.35 MB / 0.6511 GB, free: 6.223 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006427/0.5091, allocations: 2.244 MB / 0.6532 GB, free: 3.996 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.007728/0.5169, allocations: 4.623 MB / 0.6578 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003174/0.5201, allocations: 1.627 MB / 0.6593 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005512/0.5256, allocations: 1.901 MB / 0.6612 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002788/0.5285, allocations: 1.349 MB / 0.6625 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004929/0.529, allocations: 168 kB / 0.6627 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004516/0.5335, allocations: 1.837 MB / 0.6645 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007399/0.5343, allocations: 0.5333 MB / 0.665 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.5359, allocations: 1.026 MB / 0.666 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006096/0.542, allocations: 3.287 MB / 0.6692 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.5421, allocations: 0 / 0.6692 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.834e-06/0.5421, allocations: 0 / 0.6692 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.038e-05/0.5421, allocations: 0 / 0.6692 GB, free: 3.582 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.004945/0.5471, allocations: 2.521 MB / 0.6717 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.5471, allocations: 12.03 kB / 0.6717 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002193/0.5493, allocations: 449.5 kB / 0.6721 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/0.5526, allocations: 1.608 MB / 0.6737 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003769/0.553, allocations: 138.4 kB / 0.6738 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002127/0.5532, allocations: 120 kB / 0.6739 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.5559, allocations: 1.35 MB / 0.6752 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.5559, allocations: 3.938 kB / 0.6752 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.556, allocations: 44 kB / 0.6753 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.226e-05/0.5561, allocations: 50 kB / 0.6753 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00263/0.5587, allocations: 1.077 MB / 0.6764 GB, free: 12 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.01001/0.5688, allocations: 7.138 MB / 0.6834 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002586/0.5714, allocations: 1.372 MB / 0.6847 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.5724, allocations: 422.9 kB / 0.6851 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005924/0.5784, allocations: 3.079 MB / 0.6881 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.5795, allocations: 454.8 kB / 0.6885 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=60): time 3.617e-06/0.5796, allocations: 0 / 0.6885 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of matching and sorting (n=60): time 0.003503/0.5831, allocations: 1.209 MB / 0.6897 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.5831, allocations: 59.97 kB / 0.6898 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/0.586, allocations: 1.541 MB / 0.6913 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.5861, allocations: 41.7 kB / 0.6913 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.5871, allocations: 0.884 MB / 0.6922 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.5874, allocations: 224.9 kB / 0.6924 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003843/0.5878, allocations: 202.4 kB / 0.6926 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5879, allocations: 341.9 kB / 0.6929 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.589, allocations: 384.6 kB / 0.6933 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/0.5904, allocations: 0.7554 MB / 0.694 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.5929, allocations: 1.128 MB / 0.6951 GB, free: 7.379 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.593, allocations: 4 kB / 0.6951 GB, free: 7.375 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003414/0.5964, allocations: 1.29 MB / 0.6964 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.743e-05/0.5965, allocations: 42.41 kB / 0.6964 GB, free: 6.023 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.5965, allocations: 11.94 kB / 0.6964 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.448e-05/0.5965, allocations: 20 kB / 0.6965 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.5976, allocations: 255.6 kB / 0.6967 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.764e-05/0.5976, allocations: 23.92 kB / 0.6967 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.599, allocations: 139.6 kB / 0.6969 GB, free: 5.582 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.5991, allocations: 55.97 kB / 0.6969 GB, free: 5.527 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001664/0.6008, allocations: 0.6743 MB / 0.6976 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00131/0.6021, allocations: 0.7397 MB / 0.6983 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002295/0.6044, allocations: 1.093 MB / 0.6994 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.404e-05/0.6045, allocations: 4 kB / 0.6994 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.003369/0.6078, allocations: 1.27 MB / 0.7006 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.923e-05/0.6079, allocations: 41.7 kB / 0.7006 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.608, allocations: 12 kB / 0.7007 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.382e-05/0.608, allocations: 23.98 kB / 0.7007 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.609, allocations: 251.6 kB / 0.7009 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.251e-05/0.6091, allocations: 23.92 kB / 0.7009 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.6105, allocations: 124 kB / 0.7011 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.6107, allocations: 47.98 kB / 0.7011 GB, free: 0.875 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 (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.0003987/0.6111, allocations: 252.5 kB / 0.7014 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006227/0.6117, allocations: 161.9 kB / 0.7015 GB, free: 472 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.6149, allocations: 1.112 MB / 0.7026 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.6149, allocations: 15.98 kB / 0.7026 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.6149, allocations: 0 / 0.7026 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002206/0.6171, allocations: 0.9665 MB / 0.7036 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005961/0.6231, allocations: 2.427 MB / 0.7059 GB, free: 11.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.6232, allocations: 0 / 0.7059 GB, free: 11.81 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008089/0.624, allocations: 143.9 kB / 0.7061 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.6242, allocations: 32.78 kB / 0.7061 GB, free: 11.63 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.391e-05/0.6243, allocations: 23.98 kB / 0.7061 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.6257, allocations: 1.423 MB / 0.7075 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.6258, allocations: 7.875 kB / 0.7075 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003953/0.6297, allocations: 1.541 MB / 0.709 GB, free: 8.469 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.6308, allocations: 342.6 kB / 0.7093 GB, free: 8.113 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005326/0.6314, allocations: 19.94 kB / 0.7094 GB, free: 8.094 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.6326, allocations: 59.88 kB / 0.7094 GB, free: 8.035 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.6328, allocations: 56.42 kB / 0.7095 GB, free: 7.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.504e-05/0.6329, allocations: 31.97 kB / 0.7095 GB, free: 7.949 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002539/0.6354, allocations: 1.089 MB / 0.7106 GB, free: 6.836 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6354, allocations: 0 / 0.7106 GB, free: 6.836 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003547/0.639, allocations: 0.8615 MB / 0.7114 GB, free: 5.973 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 (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.002272/0.6413, allocations: 0.722 MB / 0.7121 GB, free: 5.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00477/0.6461, allocations: 1.659 MB / 0.7137 GB, free: 3.734 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/0.6461, allocations: 0 / 0.7137 GB, free: 3.734 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.6477, allocations: 0.5387 MB / 0.7143 GB, free: 3.188 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004455/0.6522, allocations: 0.7701 MB / 0.715 GB, free: 2.453 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007592/0.6598, allocations: 3.165 MB / 0.7181 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001602/0.6615, allocations: 1.352 MB / 0.7194 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000778/0.6623, allocations: 151.4 kB / 0.7196 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of SimCode: time 1.393e-06/0.6623, allocations: 0 / 0.7196 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of Templates: time 0.3682/1.03, allocations: 33.23 MB / 0.752 GB, free: 153.4 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)