Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7374/0.7374, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 221.3 MB / 400.4 MB, free: 5.852 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 104.7 kB / 483.3 MB, free: 5.895 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.744e-05, allocations: 7.891 kB / 0.5601 GB, free: 87.86 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1863, allocations: 82.3 MB / 0.6405 GB, free: 7.754 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.306/1.492, allocations: 415 MB / 1.046 GB, free: 206.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/1.493, allocations: 92.58 kB / 1.046 GB, free: 206.5 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.178/5.67, allocations: 1.183 GB / 2.229 GB, free: 66.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.304e-06/5.67, allocations: 2.75 kB / 2.229 GB, free: 66.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002392/5.67, allocations: 61.72 kB / 2.229 GB, free: 66.45 MB / 0.698 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.00461/5.675, allocations: 2.026 MB / 2.231 GB, free: 64.39 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/5.675, allocations: 10.81 kB / 2.231 GB, free: 64.38 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002278/5.675, allocations: 173.3 kB / 2.231 GB, free: 64.21 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002013/5.677, allocations: 460.4 kB / 2.232 GB, free: 63.77 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005444/5.683, allocations: 2.254 MB / 2.234 GB, free: 61.53 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/5.683, allocations: 94.2 kB / 2.234 GB, free: 61.43 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/5.683, allocations: 130.6 kB / 2.234 GB, free: 61.31 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/5.685, allocations: 1.21 MB / 2.235 GB, free: 60 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/5.685, allocations: 3.938 kB / 2.235 GB, free: 60 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/5.685, allocations: 48 kB / 2.235 GB, free: 59.95 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-05/5.685, allocations: 49.28 kB / 2.235 GB, free: 59.91 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/5.687, allocations: 0.8319 MB / 2.236 GB, free: 59.07 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.008438/5.695, allocations: 6.926 MB / 2.243 GB, free: 51.65 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/5.696, allocations: 1.129 MB / 2.244 GB, free: 50.4 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/5.697, allocations: 327.5 kB / 2.244 GB, free: 50.08 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004921/5.702, allocations: 3.022 MB / 2.247 GB, free: 46.74 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005429/5.702, allocations: 347.1 kB / 2.248 GB, free: 46.39 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007626/5.703, allocations: 87.34 kB / 2.248 GB, free: 46.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=62): time 4.9e-06/5.703, allocations: 3.328 kB / 2.248 GB, free: 46.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=62): time 0.001255/5.704, allocations: 0.6814 MB / 2.248 GB, free: 45.61 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/5.704, allocations: 111.4 kB / 2.248 GB, free: 45.48 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/5.706, allocations: 1.329 MB / 2.25 GB, free: 44.15 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.838e-05/5.706, allocations: 41.7 kB / 2.25 GB, free: 44.11 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006704/5.707, allocations: 0.8741 MB / 2.251 GB, free: 43.23 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/5.707, allocations: 225.7 kB / 2.251 GB, free: 43.01 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/5.707, allocations: 20 kB / 2.251 GB, free: 42.99 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.832e-05/5.707, allocations: 345.9 kB / 2.251 GB, free: 42.64 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/5.708, allocations: 258 kB / 2.251 GB, free: 42.39 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/5.708, allocations: 0.67 MB / 2.252 GB, free: 41.53 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/5.709, allocations: 390.1 kB / 2.253 GB, free: 41.14 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/5.709, allocations: 4 kB / 2.253 GB, free: 41.14 MB / 0.698 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001508/5.71, allocations: 1.066 MB / 2.254 GB, free: 40.05 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001099/5.711, allocations: 4.451 MB / 2.258 GB, free: 35.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/5.711, allocations: 12 kB / 2.258 GB, free: 35.21 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.139e-05/5.711, allocations: 16 kB / 2.258 GB, free: 35.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008548/5.712, allocations: 247.6 kB / 2.258 GB, free: 34.96 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/5.712, allocations: 23.92 kB / 2.258 GB, free: 34.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/5.714, allocations: 127.6 kB / 2.258 GB, free: 34.81 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.632e-05/5.714, allocations: 51.98 kB / 2.258 GB, free: 34.76 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/5.714, allocations: 4 kB / 2.258 GB, free: 34.75 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001261/5.715, allocations: 0.9023 MB / 2.259 GB, free: 33.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/5.715, allocations: 12 kB / 2.259 GB, free: 33.83 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/5.715, allocations: 22 kB / 2.259 GB, free: 33.81 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008385/5.716, allocations: 244.2 kB / 2.26 GB, free: 33.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/5.716, allocations: 19.94 kB / 2.26 GB, free: 33.55 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/5.717, allocations: 107.8 kB / 2.26 GB, free: 33.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.623e-05/5.717, allocations: 55.98 kB / 2.26 GB, free: 33.39 MB / 0.698 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 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000237/5.717, allocations: 176.7 kB / 2.26 GB, free: 33.22 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000199/5.718, allocations: 165.9 kB / 2.26 GB, free: 33.05 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/5.719, allocations: 0.9647 MB / 2.261 GB, free: 32.08 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/5.719, allocations: 8 kB / 2.261 GB, free: 32.07 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/5.719, allocations: 0 / 2.261 GB, free: 32.07 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008806/5.72, allocations: 0.7861 MB / 2.262 GB, free: 31.24 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.003405/5.724, allocations: 2.197 MB / 2.264 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/5.724, allocations: 0 / 2.264 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006124/5.724, allocations: 139.8 kB / 2.264 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/5.725, allocations: 32.8 kB / 2.264 GB, free: 28.82 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.223e-05/5.725, allocations: 24.64 kB / 2.264 GB, free: 28.79 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008666/5.725, allocations: 1.299 MB / 2.265 GB, free: 27.36 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/5.725, allocations: 0 / 2.265 GB, free: 27.36 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/5.727, allocations: 1.325 MB / 2.267 GB, free: 25.99 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006793/5.728, allocations: 350.6 kB / 2.267 GB, free: 25.63 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/5.728, allocations: 20 kB / 2.267 GB, free: 25.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009002/5.729, allocations: 95.84 kB / 2.267 GB, free: 25.52 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/5.729, allocations: 60.42 kB / 2.267 GB, free: 25.46 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.949e-05/5.729, allocations: 31.97 kB / 2.267 GB, free: 25.43 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001551/5.731, allocations: 1.066 MB / 2.268 GB, free: 24.33 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/5.731, allocations: 0 / 2.268 GB, free: 24.33 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003508/5.734, allocations: 0.982 MB / 2.269 GB, free: 23.35 MB / 0.698 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 62 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004524/5.739, allocations: 3.154 MB / 2.272 GB, free: 20.43 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002125/5.741, allocations: 1.343 MB / 2.274 GB, free: 19.07 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/5.741, allocations: 1.938 kB / 2.274 GB, free: 19.07 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006993/5.742, allocations: 465.9 kB / 2.274 GB, free: 18.59 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/5.745, allocations: 0.7139 MB / 2.275 GB, free: 17.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005942/5.751, allocations: 2.768 MB / 2.277 GB, free: 15.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/5.752, allocations: 1.395 MB / 2.279 GB, free: 13.68 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002492/5.755, allocations: 0.6031 MB / 2.279 GB, free: 13.12 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007466/5.755, allocations: 0.6828 MB / 2.28 GB, free: 12.44 MB / 0.698 GB Notification: Performance of SimCode: time 1.563e-06/5.755, allocations: 4 kB / 2.28 GB, free: 12.43 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6521/6.407, allocations: 56.11 MB / 2.335 GB, free: 96.27 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/6.408, allocations: 209.9 kB / 2.335 GB, free: 96.05 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.087/10.49, allocations: 0 / 2.335 GB, free: 96.05 MB / 0.7136 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)