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: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",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.001092/0.001092, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007638/0.007638, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.269/1.269, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7277/0.7277, allocations: 132.3 MB / 423.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8 kB / 0.5041 GB, free: 3.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.344, allocations: 81.58 MB / 0.5837 GB, free: 4.059 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05795/0.402, allocations: 65.31 MB / 0.6475 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02186/0.4239, allocations: 16.65 MB / 0.6638 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002187/0.4261, allocations: 79.5 kB / 0.6639 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002419/0.4285, allocations: 0.9949 MB / 0.6648 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005268/0.4338, allocations: 2.441 MB / 0.6672 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004512/0.4383, allocations: 2.091 MB / 0.6693 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.006551/0.4449, allocations: 6.981 MB / 0.6761 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.4468, allocations: 1.57 MB / 0.6776 GB, free: 32 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002553/0.4493, allocations: 1.73 MB / 0.6793 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001469/0.4508, allocations: 1.442 MB / 0.6807 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001648/0.451, allocations: 72 kB / 0.6808 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003015/0.454, allocations: 1.824 MB / 0.6826 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003993/0.4544, allocations: 442 kB / 0.683 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008677/0.4553, allocations: 1.019 MB / 0.684 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003259/0.4586, allocations: 3.461 MB / 0.6874 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.4586, allocations: 4 kB / 0.6874 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4586, allocations: 0 / 0.6874 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.852e-05/0.4586, allocations: 0 / 0.6874 GB, free: 6.004 MB / 0.5137 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.003525/0.4621, allocations: 2.29 MB / 0.6896 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.4622, allocations: 11.97 kB / 0.6896 GB, free: 3.629 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002071/0.4624, allocations: 186 kB / 0.6898 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.4637, allocations: 389.7 kB / 0.6902 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.4666, allocations: 1.811 MB / 0.6919 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000381/0.467, allocations: 170.3 kB / 0.6921 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.4672, allocations: 131.9 kB / 0.6922 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.4696, allocations: 1.442 MB / 0.6936 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.093e-05/0.4696, allocations: 3.984 kB / 0.6936 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.4698, allocations: 56 kB / 0.6937 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.492e-05/0.4698, allocations: 50.25 kB / 0.6937 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/0.4722, allocations: 1.137 MB / 0.6948 GB, free: 14.11 MB / 0.5294 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.007921/0.4801, allocations: 7.377 MB / 0.702 GB, free: 6.164 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.4822, allocations: 1.336 MB / 0.7033 GB, free: 4.715 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009422/0.4831, allocations: 466.6 kB / 0.7038 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004019/0.4872, allocations: 2.666 MB / 0.7064 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.4882, allocations: 0.4946 MB / 0.7069 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003576/0.4886, allocations: 87.28 kB / 0.707 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=64): time 2.345e-06/0.4886, allocations: 0 / 0.707 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of matching and sorting (n=64): time 0.00283/0.4914, allocations: 1.264 MB / 0.7082 GB, free: 15.47 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.4915, allocations: 115.4 kB / 0.7083 GB, free: 15.33 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.4933, allocations: 1.453 MB / 0.7097 GB, free: 13.88 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.831e-05/0.4933, allocations: 41.7 kB / 0.7098 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006487/0.494, allocations: 0.8956 MB / 0.7106 GB, free: 12.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.4942, allocations: 232.7 kB / 0.7109 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.4943, allocations: 93.66 kB / 0.711 GB, free: 12.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.4944, allocations: 345.9 kB / 0.7113 GB, free: 12.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008777/0.4953, allocations: 389.8 kB / 0.7117 GB, free: 11.88 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.4964, allocations: 0.7429 MB / 0.7124 GB, free: 10.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/0.4983, allocations: 1.124 MB / 0.7135 GB, free: 9.719 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.4984, allocations: 4.094 kB / 0.7135 GB, free: 9.715 MB / 0.545 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002444/0.5008, allocations: 1.309 MB / 0.7148 GB, free: 8.391 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002224/0.501, allocations: 409.4 kB / 0.7152 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.5011, allocations: 8 kB / 0.7152 GB, free: 7.832 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.5011, allocations: 16 kB / 0.7152 GB, free: 7.816 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009472/0.502, allocations: 263.6 kB / 0.7154 GB, free: 7.559 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.5021, allocations: 23.88 kB / 0.7154 GB, free: 7.535 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.5031, allocations: 136.4 kB / 0.7156 GB, free: 7.402 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-05/0.5032, allocations: 51.98 kB / 0.7156 GB, free: 7.352 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.5033, allocations: 4 kB / 0.7156 GB, free: 7.348 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002198/0.5055, allocations: 1.114 MB / 0.7167 GB, free: 6.227 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.5055, allocations: 12 kB / 0.7167 GB, free: 6.215 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.5055, allocations: 12 kB / 0.7167 GB, free: 6.203 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009151/0.5064, allocations: 256.2 kB / 0.717 GB, free: 5.953 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.5065, allocations: 23.92 kB / 0.717 GB, free: 5.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009757/0.5074, allocations: 132.4 kB / 0.7171 GB, free: 5.801 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.662e-05/0.5075, allocations: 55.98 kB / 0.7172 GB, free: 5.746 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * 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.0006145/0.5081, allocations: 488.7 kB / 0.7177 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.5083, allocations: 169.9 kB / 0.7178 GB, free: 5.09 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.5107, allocations: 1.099 MB / 0.7189 GB, free: 3.98 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5107, allocations: 8 kB / 0.7189 GB, free: 3.973 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.5107, allocations: 3.984 kB / 0.7189 GB, free: 3.969 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001765/0.5125, allocations: 0.8198 MB / 0.7197 GB, free: 3.133 MB / 0.545 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 postOpt removeSimpleEquations (simulation): time 0.004194/0.5167, allocations: 2.708 MB / 0.7223 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.5167, allocations: 3.984 kB / 0.7224 GB, free: 344 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007278/0.5175, allocations: 164 kB / 0.7225 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001397/0.5176, allocations: 28.78 kB / 0.7225 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.055e-05/0.5177, allocations: 23.98 kB / 0.7226 GB, free: 124 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000912/0.5186, allocations: 1.319 MB / 0.7238 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.5186, allocations: 7.922 kB / 0.7239 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/0.5216, allocations: 1.627 MB / 0.7254 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004647/0.5221, allocations: 358.6 kB / 0.7258 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.5223, allocations: 23.94 kB / 0.7258 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.5233, allocations: 115.9 kB / 0.7259 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.5235, allocations: 56.48 kB / 0.726 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.162e-05/0.5235, allocations: 39.97 kB / 0.726 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001268/0.5248, allocations: 1.046 MB / 0.727 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5248, allocations: 0 / 0.727 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002138/0.527, allocations: 0.947 MB / 0.728 GB, free: 10.37 MB / 0.5606 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 (76): * Single equations (assignments): 68 * 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.004093/0.5311, allocations: 2.581 MB / 0.7305 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003057/0.5341, allocations: 1.636 MB / 0.7321 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5342, allocations: 384 / 0.7321 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.5353, allocations: 0.5684 MB / 0.7326 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004037/0.5393, allocations: 0.8534 MB / 0.7335 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02143/0.5607, allocations: 13.79 MB / 0.7469 GB, free: 5.918 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009681/0.5617, allocations: 1.401 MB / 0.7483 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001688/0.5634, allocations: 418.1 kB / 0.7487 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009118/0.5644, allocations: 0.7335 MB / 0.7494 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/0.5644, allocations: 0 / 0.7494 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6276/1.192, allocations: 45.97 MB / 0.7943 GB, free: 5.984 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/1.192, allocations: 263.5 kB / 0.7946 GB, free: 5.723 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.023/4.215, allocations: 0 / 0.7946 GB, free: 5.723 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)