Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_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.00179/0.00179, allocations: 99.55 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.002282/0.002283, 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.698/2.698, allocations: 223.2 MB / 239.9 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.823/1.823, allocations: 135.2 MB / 426.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005286/0.0005287, allocations: 15.98 kB / 0.5069 GB, free: 5.156 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2966, allocations: 82.31 MB / 0.5873 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.6558/0.9524, allocations: 56.14 MB / 0.6421 GB, free: 20.41 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03302/0.9855, allocations: 14.57 MB / 0.6563 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006415/0.992, allocations: 76.12 kB / 0.6564 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.006011/0.9981, allocations: 0.9619 MB / 0.6573 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01435/1.012, allocations: 2.692 MB / 0.66 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01029/1.023, allocations: 2.203 MB / 0.6621 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01158/1.034, allocations: 3.146 MB / 0.6652 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005475/1.04, allocations: 1.361 MB / 0.6665 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006815/1.047, allocations: 1.465 MB / 0.6679 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004583/1.051, allocations: 0.9747 MB / 0.6689 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0009314/1.052, allocations: 77.55 kB / 0.669 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007387/1.06, allocations: 1.339 MB / 0.6703 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001674/1.062, allocations: 409.1 kB / 0.6707 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002113/1.064, allocations: 443.9 kB / 0.6711 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.008461/1.072, allocations: 2.59 MB / 0.6736 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/1.072, allocations: 0 / 0.6736 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.188e-06/1.072, allocations: 0 / 0.6736 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001535/1.073, allocations: 0 / 0.6736 GB, free: 2.066 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.009889/1.082, allocations: 2.308 MB / 0.6759 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/1.082, allocations: 9.656 kB / 0.6759 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000966/1.083, allocations: 180.6 kB / 0.6761 GB, free: 484 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003062/1.087, allocations: 389 kB / 0.6764 GB, free: 352 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009553/1.096, allocations: 1.663 MB / 0.678 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007928/1.097, allocations: 165.2 kB / 0.6782 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008431/1.098, allocations: 133 kB / 0.6783 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006897/1.105, allocations: 1.428 MB / 0.6797 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-05/1.105, allocations: 1.594 kB / 0.6797 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004296/1.105, allocations: 52.33 kB / 0.6798 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/1.105, allocations: 46.25 kB / 0.6798 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005638/1.111, allocations: 1.131 MB / 0.6809 GB, free: 14.21 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.02113/1.132, allocations: 7.431 MB / 0.6882 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004409/1.137, allocations: 1.367 MB / 0.6895 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009309/1.146, allocations: 2.629 MB / 0.6921 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001944/1.148, allocations: 462.4 kB / 0.6925 GB, free: 5.512 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001704/1.15, allocations: 104.5 kB / 0.6926 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=66): time 1.013e-05/1.15, allocations: 0 / 0.6926 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66): time 0.02281/1.173, allocations: 1.279 MB / 0.6939 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.366e-05/1.173, allocations: 63.34 kB / 0.6939 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006192/1.179, allocations: 1.535 MB / 0.6954 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003768/1.18, allocations: 44.61 kB / 0.6955 GB, free: 4.219 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001646/1.181, allocations: 0.8849 MB / 0.6963 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007158/1.182, allocations: 240.3 kB / 0.6966 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/1.182, allocations: 16.59 kB / 0.6966 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002493/1.182, allocations: 342.7 kB / 0.6969 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001838/1.184, allocations: 381 kB / 0.6973 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002225/1.187, allocations: 0.7188 MB / 0.698 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/1.189, allocations: 488 kB / 0.6984 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.511e-05/1.189, allocations: 3.062 kB / 0.6984 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.005647/1.194, allocations: 1.283 MB / 0.6997 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.002449/1.197, allocations: 3.811 MB / 0.7034 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.081e-05/1.197, allocations: 10.06 kB / 0.7034 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.293e-05/1.197, allocations: 15 kB / 0.7034 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/1.199, allocations: 271.3 kB / 0.7037 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.601e-05/1.199, allocations: 27.06 kB / 0.7037 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003399/1.203, allocations: 159.7 kB / 0.7039 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003555/1.203, allocations: 52.3 kB / 0.7039 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/1.203, allocations: 7.047 kB / 0.7039 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004934/1.208, allocations: 1.105 MB / 0.705 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.518e-05/1.208, allocations: 10.38 kB / 0.705 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.008e-05/1.208, allocations: 19 kB / 0.705 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/1.21, allocations: 267.2 kB / 0.7053 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.743e-05/1.21, allocations: 18.62 kB / 0.7053 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/1.213, allocations: 142.5 kB / 0.7055 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/1.214, allocations: 50.77 kB / 0.7055 GB, free: 12.32 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.002051/1.216, allocations: 492.1 kB / 0.706 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009318/1.217, allocations: 168.2 kB / 0.7061 GB, free: 11.85 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005065/1.222, allocations: 1.134 MB / 0.7072 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.694e-05/1.222, allocations: 8.219 kB / 0.7072 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/1.222, allocations: 3.938 kB / 0.7073 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003419/1.225, allocations: 0.8293 MB / 0.7081 GB, free: 10.8 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.01225/1.237, allocations: 2.642 MB / 0.7106 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.098e-05/1.238, allocations: 6.234 kB / 0.7106 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/1.239, allocations: 164.6 kB / 0.7108 GB, free: 8.938 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003684/1.239, allocations: 36.12 kB / 0.7108 GB, free: 8.918 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/1.239, allocations: 26.08 kB / 0.7109 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/1.242, allocations: 1.388 MB / 0.7122 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/1.242, allocations: 6.375 kB / 0.7122 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00737/1.249, allocations: 1.785 MB / 0.714 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002282/1.251, allocations: 383.8 kB / 0.7143 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/1.252, allocations: 24.77 kB / 0.7144 GB, free: 6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003167/1.256, allocations: 127.7 kB / 0.7145 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/1.256, allocations: 53.64 kB / 0.7145 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/1.256, allocations: 39.5 kB / 0.7146 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004557/1.261, allocations: 1.116 MB / 0.7157 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.72e-07/1.261, allocations: 3.938 kB / 0.7157 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008218/1.269, allocations: 0.9784 MB / 0.7166 GB, free: 5.039 MB / 0.5294 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.0105/1.28, allocations: 3.255 MB / 0.7198 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006968/1.287, allocations: 1.61 MB / 0.7214 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/1.287, allocations: 0 / 0.7214 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002429/1.289, allocations: 0.5824 MB / 0.7219 GB, free: 164 kB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009073/1.298, allocations: 0.8477 MB / 0.7228 GB, free: 15.33 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/1.322, allocations: 10.99 MB / 0.7335 GB, free: 4.074 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002637/1.324, allocations: 1.432 MB / 0.7349 GB, free: 2.602 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004159/1.329, allocations: 434.6 kB / 0.7353 GB, free: 2.172 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002405/1.331, allocations: 0.7375 MB / 0.736 GB, free: 1.434 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/1.331, allocations: 4 kB / 0.736 GB, free: 1.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2167/1.548, allocations: 49.14 MB / 0.784 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003605/1.548, allocations: 240.2 kB / 0.7842 GB, free: 0.6328 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.601/8.149, allocations: 0 / 0.7842 GB, free: 0.6328 MB / 0.5919 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) Environment - environmentSimulation: