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.007385/0.007385, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001717/0.001717, allocations: 196.8 kB / 16.68 MB, free: 5.977 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.355/1.355, 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.9196/0.9196, allocations: 135.1 MB / 425.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 67.89 kB / 0.5856 GB, free: 3.32 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4205, allocations: 80.91 MB / 0.6647 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05116/0.4717, allocations: 53.27 MB / 0.7167 GB, free: 12.19 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02303/0.4948, allocations: 15.19 MB / 0.7315 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00319/0.498, allocations: 87.5 kB / 0.7316 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003543/0.5016, allocations: 1.106 MB / 0.7327 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007318/0.5089, allocations: 2.342 MB / 0.735 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006032/0.515, allocations: 2.268 MB / 0.7372 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006822/0.5218, allocations: 4.619 MB / 0.7417 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002528/0.5244, allocations: 1.627 MB / 0.7433 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004238/0.5286, allocations: 1.908 MB / 0.7451 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002112/0.5308, allocations: 1.353 MB / 0.7465 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003209/0.5311, allocations: 168 kB / 0.7466 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003764/0.5349, allocations: 1.841 MB / 0.7484 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005679/0.5355, allocations: 0.5216 MB / 0.7489 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.5367, allocations: 1.03 MB / 0.7499 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005201/0.5419, allocations: 3.349 MB / 0.7532 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.5419, allocations: 4 kB / 0.7532 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5419, allocations: 0 / 0.7532 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.754e-05/0.542, allocations: 0 / 0.7532 GB, free: 6.68 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.004258/0.5462, allocations: 2.6 MB / 0.7558 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.5463, allocations: 16.03 kB / 0.7558 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002001/0.5483, allocations: 462.5 kB / 0.7562 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003277/0.5516, allocations: 1.684 MB / 0.7579 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.59e-05/0.5517, allocations: 90.2 kB / 0.7579 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.5519, allocations: 120 kB / 0.7581 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002685/0.5546, allocations: 1.346 MB / 0.7594 GB, free: 160 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.071e-05/0.5546, allocations: 7.875 kB / 0.7594 GB, free: 152 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.5547, allocations: 51.94 kB / 0.7594 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.77e-05/0.5548, allocations: 42 kB / 0.7595 GB, free: 56 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002637/0.5574, allocations: 1.077 MB / 0.7605 GB, free: 14.97 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.009237/0.5667, allocations: 7.093 MB / 0.7674 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.5691, allocations: 1.355 MB / 0.7688 GB, free: 5.859 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009648/0.5701, allocations: 418.9 kB / 0.7692 GB, free: 5.449 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005255/0.5754, allocations: 3.095 MB / 0.7722 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.5765, allocations: 446.8 kB / 0.7726 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=60): time 2.615e-06/0.5765, allocations: 0 / 0.7726 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of matching and sorting (n=60): time 0.003255/0.5798, allocations: 1.21 MB / 0.7738 GB, free: 340 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.5798, allocations: 55.97 kB / 0.7739 GB, free: 272 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/0.5823, allocations: 1.537 MB / 0.7754 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.545e-05/0.5824, allocations: 45.7 kB / 0.7754 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008986/0.5834, allocations: 0.905 MB / 0.7763 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.5836, allocations: 226.1 kB / 0.7765 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003755/0.584, allocations: 202.5 kB / 0.7767 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.5842, allocations: 341.9 kB / 0.777 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009793/0.5852, allocations: 376.6 kB / 0.7774 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.5865, allocations: 0.7553 MB / 0.7781 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002235/0.5887, allocations: 1.117 MB / 0.7792 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.5887, allocations: 7.938 kB / 0.7792 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003054/0.5918, allocations: 1.298 MB / 0.7805 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.007e-05/0.5919, allocations: 35.89 kB / 0.7805 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/0.5919, allocations: 12 kB / 0.7805 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.001e-05/0.5919, allocations: 16 kB / 0.7805 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009731/0.5929, allocations: 256 kB / 0.7808 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-05/0.5929, allocations: 23.92 kB / 0.7808 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.5942, allocations: 139.9 kB / 0.7809 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-05/0.5943, allocations: 55.97 kB / 0.781 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001504/0.5958, allocations: 0.6698 MB / 0.7817 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001237/0.5971, allocations: 0.7358 MB / 0.7824 GB, free: 7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002044/0.5991, allocations: 1.082 MB / 0.7834 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.232e-06/0.5991, allocations: 4 kB / 0.7834 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002937/0.6021, allocations: 1.275 MB / 0.7847 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.6021, allocations: 33.7 kB / 0.7847 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.6022, allocations: 20.55 kB / 0.7847 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.6022, allocations: 20 kB / 0.7847 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009547/0.6032, allocations: 247.6 kB / 0.785 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.13e-05/0.6032, allocations: 23.92 kB / 0.785 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.6044, allocations: 120.3 kB / 0.7851 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.294e-05/0.6045, allocations: 59.98 kB / 0.7852 GB, free: 3.949 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.0003759/0.6049, allocations: 247.8 kB / 0.7854 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.6052, allocations: 174.9 kB / 0.7856 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002726/0.6079, allocations: 1.104 MB / 0.7867 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.6079, allocations: 11.94 kB / 0.7867 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.608, allocations: 0 / 0.7867 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001957/0.6099, allocations: 0.9586 MB / 0.7876 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004643/0.6146, allocations: 2.413 MB / 0.79 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.6146, allocations: 4 kB / 0.79 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/0.6153, allocations: 147.9 kB / 0.7901 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.6156, allocations: 24.84 kB / 0.7901 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.88e-05/0.6156, allocations: 19.98 kB / 0.7901 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.6169, allocations: 1.421 MB / 0.7915 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.6169, allocations: 3.938 kB / 0.7915 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.6204, allocations: 1.548 MB / 0.7931 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000776/0.6212, allocations: 355.6 kB / 0.7934 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.6214, allocations: 19.92 kB / 0.7934 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007972/0.6222, allocations: 55.95 kB / 0.7935 GB, free: 11.13 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.6223, allocations: 48.48 kB / 0.7935 GB, free: 11.08 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.396e-05/0.6224, allocations: 35.97 kB / 0.7935 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001785/0.6242, allocations: 1.089 MB / 0.7946 GB, free: 9.93 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6242, allocations: 4 kB / 0.7946 GB, free: 9.926 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002402/0.6266, allocations: 0.873 MB / 0.7955 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.001817/0.6285, allocations: 0.7295 MB / 0.7962 GB, free: 8.453 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003806/0.6323, allocations: 1.582 MB / 0.7977 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6323, allocations: 0 / 0.7977 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.6336, allocations: 0.5413 MB / 0.7982 GB, free: 6.297 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003642/0.6373, allocations: 0.7651 MB / 0.799 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006026/0.6433, allocations: 3.07 MB / 0.802 GB, free: 2.43 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.6443, allocations: 1.36 MB / 0.8033 GB, free: 1.043 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001659/0.646, allocations: 417.8 kB / 0.8037 GB, free: 0.6289 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.6464, allocations: 135.4 kB / 0.8039 GB, free: 0.4961 MB / 0.6231 GB Notification: Performance of SimCode: time 1.182e-06/0.6464, allocations: 0 / 0.8039 GB, free: 0.4961 MB / 0.6231 GB Notification: Performance of Templates: time 0.05576/0.7022, allocations: 31.68 MB / 0.8348 GB, free: 1.223 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)