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.00135/0.00135, allocations: 100.2 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.001534/0.001534, allocations: 177.3 kB / 15.95 MB, free: 216 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.389/2.389, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.402/1.402, allocations: 132.2 MB / 423.2 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006756/0.0006757, allocations: 8 kB / 0.5033 GB, free: 4.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7708/0.7715, allocations: 81.57 MB / 0.583 GB, free: 3.898 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.1151/0.8867, allocations: 56.15 MB / 0.6378 GB, free: 8.219 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02831/0.915, allocations: 14.57 MB / 0.652 GB, free: 9.629 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005277/0.9204, allocations: 75.5 kB / 0.6521 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005411/0.9258, allocations: 0.9678 MB / 0.653 GB, free: 8.582 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01398/0.9398, allocations: 2.701 MB / 0.6557 GB, free: 5.879 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008865/0.9487, allocations: 2.2 MB / 0.6578 GB, free: 3.715 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.008196/0.9569, allocations: 3.143 MB / 0.6609 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004539/0.9615, allocations: 1.364 MB / 0.6622 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005589/0.9672, allocations: 1.463 MB / 0.6637 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002936/0.9702, allocations: 0.972 MB / 0.6646 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008181/0.971, allocations: 76 kB / 0.6647 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005823/0.9768, allocations: 1.346 MB / 0.666 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.9781, allocations: 406.4 kB / 0.6664 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001594/0.9797, allocations: 444.6 kB / 0.6668 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.005434/0.9852, allocations: 2.583 MB / 0.6693 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9852, allocations: 0 / 0.6693 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.865e-06/0.9852, allocations: 0 / 0.6693 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001407/0.9854, allocations: 4 kB / 0.6693 GB, free: 7.875 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: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.006995/0.9924, allocations: 2.306 MB / 0.6716 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.9925, allocations: 16.03 kB / 0.6716 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000585/0.993, allocations: 181.8 kB / 0.6718 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/0.9951, allocations: 381 kB / 0.6721 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004585/0.9997, allocations: 1.661 MB / 0.6738 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004694/1, allocations: 170.3 kB / 0.6739 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004035/1.001, allocations: 140 kB / 0.6741 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003524/1.004, allocations: 1.419 MB / 0.6754 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/1.004, allocations: 7.984 kB / 0.6754 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001666/1.004, allocations: 48 kB / 0.6755 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.913e-05/1.004, allocations: 46.31 kB / 0.6755 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002958/1.007, allocations: 1.133 MB / 0.6766 GB, free: 160 kB / 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.01238/1.02, allocations: 7.441 MB / 0.6839 GB, free: 8.133 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/1.023, allocations: 1.368 MB / 0.6852 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005283/1.028, allocations: 2.631 MB / 0.6878 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/1.029, allocations: 458.9 kB / 0.6883 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008986/1.03, allocations: 99.09 kB / 0.6883 GB, free: 3.234 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=66): time 5e-06/1.03, allocations: 3.938 kB / 0.6883 GB, free: 3.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66): time 0.00335/1.033, allocations: 1.284 MB / 0.6896 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/1.033, allocations: 59.97 kB / 0.6897 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002395/1.036, allocations: 1.544 MB / 0.6912 GB, free: 316 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/1.036, allocations: 41.7 kB / 0.6912 GB, free: 268 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009137/1.037, allocations: 0.892 MB / 0.6921 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/1.037, allocations: 228.7 kB / 0.6923 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-05/1.037, allocations: 20 kB / 0.6923 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000145/1.037, allocations: 345.9 kB / 0.6926 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009323/1.038, allocations: 377.7 kB / 0.693 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/1.039, allocations: 0.7147 MB / 0.6937 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/1.041, allocations: 484.7 kB / 0.6942 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/1.041, allocations: 0 / 0.6942 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002897/1.043, allocations: 1.278 MB / 0.6954 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.001741/1.045, allocations: 3.815 MB / 0.6991 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/1.045, allocations: 15.95 kB / 0.6992 GB, free: 7.613 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.894e-05/1.045, allocations: 16 kB / 0.6992 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/1.046, allocations: 267.6 kB / 0.6994 GB, free: 7.336 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/1.046, allocations: 19.94 kB / 0.6994 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/1.048, allocations: 156.4 kB / 0.6996 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/1.048, allocations: 51.98 kB / 0.6996 GB, free: 7.109 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/1.048, allocations: 4 kB / 0.6996 GB, free: 7.105 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002532/1.051, allocations: 1.102 MB / 0.7007 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/1.051, allocations: 12 kB / 0.7007 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/1.051, allocations: 19.94 kB / 0.7008 GB, free: 5.965 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.052, allocations: 264.2 kB / 0.701 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/1.052, allocations: 19.94 kB / 0.701 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/1.054, allocations: 144.4 kB / 0.7012 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/1.054, allocations: 51.98 kB / 0.7012 GB, free: 5.496 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (122): * Single equations (assignments): 120 * 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.001126/1.055, allocations: 496.7 kB / 0.7017 GB, free: 5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003082/1.055, allocations: 165.9 kB / 0.7018 GB, free: 4.836 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0027/1.058, allocations: 1.135 MB / 0.703 GB, free: 3.688 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/1.058, allocations: 8 kB / 0.703 GB, free: 3.68 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/1.058, allocations: 7.938 kB / 0.703 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001901/1.06, allocations: 0.8315 MB / 0.7038 GB, free: 2.828 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 postOpt removeSimpleEquations (simulation): time 0.005685/1.066, allocations: 2.639 MB / 0.7064 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/1.066, allocations: 0 / 0.7064 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008519/1.067, allocations: 172 kB / 0.7065 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/1.067, allocations: 36.83 kB / 0.7066 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.062e-05/1.067, allocations: 27.98 kB / 0.7066 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/1.068, allocations: 1.39 MB / 0.7079 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.068, allocations: 3.938 kB / 0.7079 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/1.072, allocations: 1.78 MB / 0.7097 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/1.074, allocations: 386.6 kB / 0.7101 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/1.074, allocations: 20 kB / 0.7101 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/1.075, allocations: 123.8 kB / 0.7102 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/1.075, allocations: 64.42 kB / 0.7102 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.64e-05/1.075, allocations: 35.98 kB / 0.7103 GB, free: 11.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001883/1.077, allocations: 1.117 MB / 0.7114 GB, free: 10.65 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.077, allocations: 3.938 kB / 0.7114 GB, free: 10.65 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003198/1.081, allocations: 0.9706 MB / 0.7123 GB, free: 9.676 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.005556/1.086, allocations: 3.258 MB / 0.7155 GB, free: 6.344 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003858/1.09, allocations: 1.601 MB / 0.7171 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/1.09, allocations: 1.312 kB / 0.7171 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001323/1.091, allocations: 0.584 MB / 0.7176 GB, free: 4.125 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004568/1.096, allocations: 0.8397 MB / 0.7185 GB, free: 3.301 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/1.109, allocations: 10.99 MB / 0.7292 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/1.11, allocations: 1.432 MB / 0.7306 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002601/1.112, allocations: 433.4 kB / 0.731 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/1.114, allocations: 0.7414 MB / 0.7317 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of SimCode: time 1.553e-06/1.114, allocations: 4 kB / 0.7317 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09735/1.211, allocations: 49.14 MB / 0.7797 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/1.211, allocations: 229.3 kB / 0.7799 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.724/5.936, allocations: 0 / 0.7799 GB, free: 4.684 MB / 0.6075 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/linux/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) Environment - environmentSimulation: