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: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7186/0.7186, allocations: 132.2 MB / 422.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.001201, allocations: 64.2 kB / 0.5019 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3598, allocations: 80.2 MB / 0.5802 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05114/0.411, allocations: 53.28 MB / 0.6322 GB, free: 11.78 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.4321, allocations: 15.19 MB / 0.647 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003073/0.4353, allocations: 91.5 kB / 0.6471 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00308/0.4384, allocations: 1.108 MB / 0.6482 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005976/0.4443, allocations: 2.342 MB / 0.6505 GB, free: 9.348 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005166/0.4495, allocations: 2.249 MB / 0.6527 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.006115/0.4556, allocations: 4.62 MB / 0.6572 GB, free: 2.488 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0023/0.458, allocations: 1.627 MB / 0.6588 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003781/0.4618, allocations: 1.907 MB / 0.6607 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001811/0.4636, allocations: 1.353 MB / 0.662 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002982/0.4639, allocations: 168 kB / 0.6621 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003477/0.4674, allocations: 1.833 MB / 0.6639 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005405/0.4679, allocations: 0.5254 MB / 0.6644 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.469, allocations: 1.026 MB / 0.6654 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004169/0.4732, allocations: 3.279 MB / 0.6686 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.4732, allocations: 4 kB / 0.6687 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4732, allocations: 0 / 0.6687 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.22e-05/0.4733, allocations: 4 kB / 0.6687 GB, free: 6.707 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.003789/0.4771, allocations: 2.521 MB / 0.6711 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.4771, allocations: 8.031 kB / 0.6711 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001762/0.4773, allocations: 169.2 kB / 0.6713 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/0.4793, allocations: 461.2 kB / 0.6717 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002684/0.482, allocations: 1.604 MB / 0.6733 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003632/0.4824, allocations: 146.4 kB / 0.6734 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001714/0.4826, allocations: 120 kB / 0.6735 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002364/0.4849, allocations: 1.346 MB / 0.6749 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.485, allocations: 0 / 0.6749 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.4851, allocations: 55.92 kB / 0.6749 GB, free: 68 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.394e-05/0.4851, allocations: 42.06 kB / 0.675 GB, free: 24 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002575/0.4877, allocations: 1.081 MB / 0.676 GB, free: 14.93 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.008454/0.4962, allocations: 7.142 MB / 0.683 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0024/0.4986, allocations: 1.355 MB / 0.6843 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000952/0.4996, allocations: 426.9 kB / 0.6847 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004879/0.5045, allocations: 3.075 MB / 0.6877 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/0.5055, allocations: 450.8 kB / 0.6881 GB, free: 1.484 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 2.745e-06/0.5055, allocations: 4 kB / 0.6882 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=60): time 0.00305/0.5086, allocations: 1.217 MB / 0.6893 GB, free: 240 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.5087, allocations: 63.95 kB / 0.6894 GB, free: 164 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.5106, allocations: 1.533 MB / 0.6909 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.381e-05/0.5107, allocations: 45.7 kB / 0.6909 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00069/0.5113, allocations: 0.8722 MB / 0.6918 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.5116, allocations: 220.9 kB / 0.692 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/0.5118, allocations: 210.3 kB / 0.6922 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.512, allocations: 345.9 kB / 0.6925 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009331/0.5129, allocations: 384.6 kB / 0.6929 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.5141, allocations: 0.7514 MB / 0.6936 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.5161, allocations: 1.128 MB / 0.6947 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.5161, allocations: 3.938 kB / 0.6947 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002748/0.5189, allocations: 1.297 MB / 0.696 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.5189, allocations: 37.69 kB / 0.696 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.519, allocations: 12 kB / 0.6961 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.519, allocations: 16 kB / 0.6961 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009719/0.52, allocations: 264.2 kB / 0.6963 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.52, allocations: 19.94 kB / 0.6963 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.521, allocations: 139.6 kB / 0.6965 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.119e-05/0.5211, allocations: 55.98 kB / 0.6965 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001374/0.5225, allocations: 0.6737 MB / 0.6972 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001122/0.5236, allocations: 0.7398 MB / 0.6979 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001972/0.5256, allocations: 1.097 MB / 0.699 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.831e-06/0.5256, allocations: 4 kB / 0.699 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002691/0.5283, allocations: 1.266 MB / 0.7002 GB, free: 4.348 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.5284, allocations: 37.7 kB / 0.7003 GB, free: 4.305 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.5284, allocations: 8.625 kB / 0.7003 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5284, allocations: 23.98 kB / 0.7003 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009576/0.5294, allocations: 255.6 kB / 0.7005 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.202e-05/0.5294, allocations: 27.86 kB / 0.7006 GB, free: 3.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.5305, allocations: 120 kB / 0.7007 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.771e-05/0.5306, allocations: 51.98 kB / 0.7007 GB, free: 3.828 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.0002759/0.5309, allocations: 251.8 kB / 0.701 GB, free: 3.574 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.5312, allocations: 161.9 kB / 0.7011 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/0.534, allocations: 1.115 MB / 0.7022 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.534, allocations: 8 kB / 0.7022 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.534, allocations: 0 / 0.7022 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001955/0.536, allocations: 0.9704 MB / 0.7032 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004559/0.5405, allocations: 2.424 MB / 0.7055 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.5406, allocations: 8 kB / 0.7055 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007509/0.5413, allocations: 147.8 kB / 0.7057 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001481/0.5415, allocations: 24.84 kB / 0.7057 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.388e-05/0.5416, allocations: 19.98 kB / 0.7057 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.5426, allocations: 1.417 MB / 0.7071 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/0.5426, allocations: 11.95 kB / 0.7071 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003433/0.546, allocations: 1.538 MB / 0.7086 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006332/0.5467, allocations: 346.6 kB / 0.7089 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/0.5469, allocations: 15.94 kB / 0.709 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008293/0.5477, allocations: 67.88 kB / 0.709 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.5479, allocations: 56.48 kB / 0.7091 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.695e-05/0.5479, allocations: 27.98 kB / 0.7091 GB, free: 10.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001473/0.5494, allocations: 1.093 MB / 0.7102 GB, free: 9.785 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5494, allocations: 0 / 0.7102 GB, free: 9.785 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002105/0.5515, allocations: 0.8654 MB / 0.711 GB, free: 8.918 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.005032/0.5566, allocations: 2.731 MB / 0.7137 GB, free: 6.328 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004066/0.5607, allocations: 1.652 MB / 0.7153 GB, free: 4.652 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.5607, allocations: 0 / 0.7153 GB, free: 4.652 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.5619, allocations: 0.5491 MB / 0.7158 GB, free: 4.094 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/0.5654, allocations: 0.7668 MB / 0.7166 GB, free: 3.359 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01926/0.5847, allocations: 12.89 MB / 0.7292 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008624/0.5856, allocations: 1.36 MB / 0.7305 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001637/0.5872, allocations: 410.3 kB / 0.7309 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008516/0.5881, allocations: 0.7179 MB / 0.7316 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/0.5881, allocations: 0 / 0.7316 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07427/0.6624, allocations: 44.82 MB / 0.7754 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.651/10.31, allocations: 10.34 kB / 0.7754 GB, free: 6.758 MB / 0.6075 GB (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T_res.csv --start-time 0 --stop-time 172800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 69.12 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)