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.001778/0.001778, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001612/0.001612, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.331/2.331, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.226/1.226, allocations: 132.2 MB / 423.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004942/0.0004946, allocations: 8 kB / 0.5033 GB, free: 4.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7297/0.7302, allocations: 81.57 MB / 0.583 GB, free: 4.023 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.09143/0.8217, allocations: 44.74 MB / 0.6266 GB, free: 2.844 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03809/0.8599, allocations: 13.25 MB / 0.6396 GB, free: 6.527 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005124/0.8651, allocations: 67.56 kB / 0.6396 GB, free: 6.461 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006102/0.8713, allocations: 0.9257 MB / 0.6405 GB, free: 5.539 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01418/0.8855, allocations: 2.369 MB / 0.6429 GB, free: 3.168 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01216/0.8976, allocations: 2.063 MB / 0.6449 GB, free: 1.133 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01145/0.9091, allocations: 2.762 MB / 0.6476 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004144/0.9134, allocations: 1.234 MB / 0.6488 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007275/0.9207, allocations: 1.358 MB / 0.6501 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003734/0.9245, allocations: 0.9138 MB / 0.651 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000752/0.9253, allocations: 71.94 kB / 0.6511 GB, free: 10.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007505/0.9329, allocations: 1.272 MB / 0.6523 GB, free: 9.492 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001277/0.9342, allocations: 390.4 kB / 0.6527 GB, free: 9.109 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.9356, allocations: 404.6 kB / 0.6531 GB, free: 8.707 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006376/0.942, allocations: 2.35 MB / 0.6554 GB, free: 6.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9421, allocations: 0 / 0.6554 GB, free: 6.352 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.9421, allocations: 0 / 0.6554 GB, free: 6.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.771e-05/0.9422, allocations: 4 kB / 0.6554 GB, free: 6.348 MB / 494.1 MB 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.007787/0.95, allocations: 2.183 MB / 0.6575 GB, free: 4.098 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.712e-05/0.9501, allocations: 8.031 kB / 0.6575 GB, free: 4.09 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000512/0.9506, allocations: 165 kB / 0.6577 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004204/0.9548, allocations: 489 kB / 0.6581 GB, free: 3.438 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006432/0.9613, allocations: 1.54 MB / 0.6596 GB, free: 1.848 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007573/0.9621, allocations: 158.4 kB / 0.6598 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003982/0.9625, allocations: 128 kB / 0.6599 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/0.9674, allocations: 1.342 MB / 0.6612 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.84e-05/0.9675, allocations: 4 kB / 0.6612 GB, free: 132 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001966/0.9677, allocations: 44 kB / 0.6613 GB, free: 88 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.541e-05/0.9678, allocations: 50.06 kB / 0.6613 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005045/0.9729, allocations: 1.124 MB / 0.6624 GB, free: 14.9 MB / 0.4981 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.01787/0.9908, allocations: 7.143 MB / 0.6694 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004866/0.9957, allocations: 1.429 MB / 0.6708 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009011/1.005, allocations: 3.098 MB / 0.6738 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002008/1.007, allocations: 462.8 kB / 0.6742 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001033/1.008, allocations: 83.25 kB / 0.6743 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=62): time 6.201e-06/1.008, allocations: 0 / 0.6743 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of matching and sorting (n=62): time 0.006467/1.014, allocations: 1.288 MB / 0.6756 GB, free: 356 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/1.015, allocations: 63.89 kB / 0.6756 GB, free: 280 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004191/1.019, allocations: 1.576 MB / 0.6772 GB, free: 14.69 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000263/1.019, allocations: 45.7 kB / 0.6772 GB, free: 14.64 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001348/1.02, allocations: 0.8685 MB / 0.6781 GB, free: 13.77 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003969/1.021, allocations: 220.8 kB / 0.6783 GB, free: 13.55 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.743e-05/1.021, allocations: 20 kB / 0.6783 GB, free: 13.53 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0002165/1.021, allocations: 345.9 kB / 0.6786 GB, free: 13.18 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/1.023, allocations: 373.8 kB / 0.679 GB, free: 12.82 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002402/1.025, allocations: 0.7476 MB / 0.6797 GB, free: 11.91 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/1.027, allocations: 492.6 kB / 0.6802 GB, free: 11.42 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/1.027, allocations: 0 / 0.6802 GB, free: 11.42 MB / 0.5138 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.005374/1.033, allocations: 1.297 MB / 0.6815 GB, free: 10.11 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.002318/1.035, allocations: 4.369 MB / 0.6857 GB, free: 5.375 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.243e-05/1.035, allocations: 12 kB / 0.6857 GB, free: 5.363 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.665e-05/1.035, allocations: 20 kB / 0.6858 GB, free: 5.344 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/1.038, allocations: 271.6 kB / 0.686 GB, free: 5.078 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.944e-05/1.038, allocations: 19.94 kB / 0.686 GB, free: 5.059 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003259/1.041, allocations: 144.4 kB / 0.6862 GB, free: 4.918 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002953/1.041, allocations: 55.98 kB / 0.6862 GB, free: 4.863 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/1.041, allocations: 4 kB / 0.6862 GB, free: 4.859 MB / 0.5138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005157/1.046, allocations: 1.118 MB / 0.6873 GB, free: 3.734 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.532e-05/1.047, allocations: 19.94 kB / 0.6873 GB, free: 3.715 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.591e-05/1.047, allocations: 16.59 kB / 0.6874 GB, free: 3.699 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/1.049, allocations: 267.6 kB / 0.6876 GB, free: 3.438 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.634e-05/1.049, allocations: 27.92 kB / 0.6876 GB, free: 3.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002909/1.052, allocations: 132.5 kB / 0.6878 GB, free: 3.281 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/1.052, allocations: 51.98 kB / 0.6878 GB, free: 3.23 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001532/1.053, allocations: 481.2 kB / 0.6883 GB, free: 2.75 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006454/1.054, allocations: 165.9 kB / 0.6884 GB, free: 2.586 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005147/1.059, allocations: 1.169 MB / 0.6896 GB, free: 1.406 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-05/1.059, allocations: 8 kB / 0.6896 GB, free: 1.398 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/1.059, allocations: 8 kB / 0.6896 GB, free: 1.391 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003952/1.063, allocations: 0.9939 MB / 0.6906 GB, free: 352 kB / 0.5138 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.008727/1.072, allocations: 2.49 MB / 0.693 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/1.072, allocations: 0 / 0.693 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/1.074, allocations: 155.8 kB / 0.6931 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003978/1.074, allocations: 40.83 kB / 0.6932 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/1.074, allocations: 23.98 kB / 0.6932 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/1.076, allocations: 1.37 MB / 0.6945 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.076, allocations: 0 / 0.6945 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006662/1.083, allocations: 1.635 MB / 0.6961 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/1.085, allocations: 366.6 kB / 0.6965 GB, free: 9.992 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005176/1.085, allocations: 23.97 kB / 0.6965 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.087, allocations: 115.8 kB / 0.6966 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/1.088, allocations: 64.44 kB / 0.6967 GB, free: 9.793 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.088, allocations: 31.97 kB / 0.6967 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00328/1.091, allocations: 1.121 MB / 0.6978 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.61e-07/1.091, allocations: 0 / 0.6978 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005989/1.097, allocations: 0.9045 MB / 0.6987 GB, free: 7.711 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01022/1.107, allocations: 2.936 MB / 0.7016 GB, free: 4.902 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008918/1.116, allocations: 1.617 MB / 0.7031 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/1.116, allocations: 0 / 0.7031 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002644/1.119, allocations: 0.5646 MB / 0.7037 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007082/1.126, allocations: 0.7196 MB / 0.7044 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02602/1.152, allocations: 12.24 MB / 0.7163 GB, free: 5.332 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002562/1.155, allocations: 1.395 MB / 0.7177 GB, free: 3.906 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004443/1.159, allocations: 419.8 kB / 0.7181 GB, free: 3.496 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002259/1.162, allocations: 0.7218 MB / 0.7188 GB, free: 2.773 MB / 0.545 GB Notification: Performance of SimCode: time 5e-06/1.162, allocations: 0 / 0.7188 GB, free: 2.773 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1591/1.321, allocations: 45.63 MB / 0.7634 GB, free: 5.766 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003858/1.321, allocations: 237.5 kB / 0.7636 GB, free: 5.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.202/6.523, allocations: 3.938 kB / 0.7636 GB, free: 5.516 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) Environment - environmentSimulation: