Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8106/0.8106, allocations: 143.3 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 181.1 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.2 MB / 447.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 92.27 kB / 0.5187 GB, free: 1.184 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001855/0.001855, allocations: 271.6 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000454/0.000454, allocations: 16.78 kB / 0.6929 GB, free: 59.52 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1587, allocations: 82.8 MB / 0.7738 GB, free: 13.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.088/1.247, allocations: 412.6 MB / 1.177 GB, free: 264.9 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/1.247, allocations: 101.2 kB / 1.177 GB, free: 264.9 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.776/5.023, allocations: 1.186 GB / 2.363 GB, free: 86.48 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.292e-06/5.023, allocations: 0 / 2.363 GB, free: 86.48 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001892/5.024, allocations: 47.38 kB / 2.363 GB, free: 86.48 MB / 0.7136 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.004728/5.028, allocations: 2.52 MB / 2.366 GB, free: 85.39 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/5.028, allocations: 11.88 kB / 2.366 GB, free: 85.39 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001892/5.029, allocations: 169.8 kB / 2.366 GB, free: 85.35 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/5.03, allocations: 458.4 kB / 2.366 GB, free: 85.23 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004984/5.035, allocations: 2.276 MB / 2.368 GB, free: 84.78 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.971e-05/5.036, allocations: 92.53 kB / 2.368 GB, free: 84.78 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/5.036, allocations: 118.9 kB / 2.369 GB, free: 84.78 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/5.038, allocations: 1.288 MB / 2.37 GB, free: 84.51 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/5.038, allocations: 4.25 kB / 2.37 GB, free: 84.51 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/5.038, allocations: 43.78 kB / 2.37 GB, free: 84.51 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-05/5.038, allocations: 49.28 kB / 2.37 GB, free: 84.51 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/5.04, allocations: 0.9593 MB / 2.371 GB, free: 84.49 MB / 0.7136 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.008555/5.049, allocations: 6.938 MB / 2.378 GB, free: 80.38 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/5.05, allocations: 1.272 MB / 2.379 GB, free: 79.77 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005133/5.055, allocations: 2.992 MB / 2.382 GB, free: 77.89 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008508/5.056, allocations: 418.2 kB / 2.382 GB, free: 77.84 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008274/5.057, allocations: 84.47 kB / 2.382 GB, free: 77.8 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=63): time 3.247e-06/5.057, allocations: 0.75 kB / 2.382 GB, free: 77.8 MB / 0.7136 GB Notification: Performance of matching and sorting (n=63): time 0.002592/5.06, allocations: 1.141 MB / 2.383 GB, free: 77.57 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/5.06, allocations: 109.2 kB / 2.383 GB, free: 77.44 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/5.062, allocations: 1.329 MB / 2.385 GB, free: 77.27 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.569e-05/5.062, allocations: 47.89 kB / 2.385 GB, free: 77.24 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006733/5.063, allocations: 0.8742 MB / 2.386 GB, free: 76.93 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/5.063, allocations: 223.7 kB / 2.386 GB, free: 76.79 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/5.063, allocations: 21.81 kB / 2.386 GB, free: 76.79 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.401e-05/5.063, allocations: 347.2 kB / 2.386 GB, free: 76.48 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006505/5.064, allocations: 318.1 kB / 2.387 GB, free: 76.48 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008608/5.064, allocations: 0.7329 MB / 2.387 GB, free: 75.98 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008033/5.065, allocations: 438.8 kB / 2.388 GB, free: 75.94 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/5.065, allocations: 3.875 kB / 2.388 GB, free: 75.94 MB / 0.7136 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002206/5.068, allocations: 1.185 MB / 2.389 GB, free: 75.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008193/5.068, allocations: 4.452 MB / 2.393 GB, free: 71.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/5.068, allocations: 11.25 kB / 2.393 GB, free: 71.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/5.068, allocations: 19.41 kB / 2.393 GB, free: 71.1 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009268/5.069, allocations: 247.4 kB / 2.393 GB, free: 71.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.694e-05/5.069, allocations: 28.02 kB / 2.393 GB, free: 71.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/5.071, allocations: 119.8 kB / 2.394 GB, free: 71.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/5.071, allocations: 55.36 kB / 2.394 GB, free: 71.09 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/5.071, allocations: 4.625 kB / 2.394 GB, free: 71.09 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001838/5.073, allocations: 1.015 MB / 2.395 GB, free: 71.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.774e-05/5.073, allocations: 11.53 kB / 2.395 GB, free: 71.05 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/5.073, allocations: 18.88 kB / 2.395 GB, free: 71.05 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008431/5.074, allocations: 250.3 kB / 2.395 GB, free: 71.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/5.074, allocations: 23.34 kB / 2.395 GB, free: 71.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/5.075, allocations: 111.1 kB / 2.395 GB, free: 71.04 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.19e-05/5.075, allocations: 52.73 kB / 2.395 GB, free: 71.04 MB / 0.7136 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 () * 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.000958/5.076, allocations: 482.5 kB / 2.396 GB, free: 70.84 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000292/5.076, allocations: 170.7 kB / 2.396 GB, free: 70.75 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/5.079, allocations: 1.069 MB / 2.397 GB, free: 70.66 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/5.079, allocations: 10.75 kB / 2.397 GB, free: 70.66 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/5.079, allocations: 3.141 kB / 2.397 GB, free: 70.66 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001385/5.08, allocations: 0.9011 MB / 2.398 GB, free: 70.39 MB / 0.7136 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.004955/5.085, allocations: 2.316 MB / 2.4 GB, free: 70.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/5.085, allocations: 1.5 kB / 2.4 GB, free: 70.01 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006735/5.086, allocations: 138.9 kB / 2.4 GB, free: 70.01 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001929/5.086, allocations: 26.52 kB / 2.4 GB, free: 70 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-05/5.086, allocations: 24.94 kB / 2.4 GB, free: 70 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009644/5.087, allocations: 1.324 MB / 2.401 GB, free: 68.74 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/5.087, allocations: 3.062 kB / 2.401 GB, free: 68.74 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/5.09, allocations: 1.485 MB / 2.403 GB, free: 68.41 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008024/5.091, allocations: 352 kB / 2.403 GB, free: 68.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/5.091, allocations: 17.22 kB / 2.403 GB, free: 68.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009487/5.092, allocations: 98.73 kB / 2.403 GB, free: 68.21 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/5.092, allocations: 56.42 kB / 2.403 GB, free: 68.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/5.092, allocations: 33.69 kB / 2.403 GB, free: 68.21 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001519/5.093, allocations: 1.078 MB / 2.404 GB, free: 68.07 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.3e-07/5.094, allocations: 0 / 2.404 GB, free: 68.07 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003662/5.097, allocations: 0.9806 MB / 2.405 GB, free: 67.92 MB / 0.7136 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 (72): * Single equations (assignments): 63 * 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.005109/5.102, allocations: 3.373 MB / 2.409 GB, free: 66.78 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002913/5.105, allocations: 1.464 MB / 2.41 GB, free: 66.64 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/5.105, allocations: 0 / 2.41 GB, free: 66.64 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0009546/5.106, allocations: 0.5117 MB / 2.411 GB, free: 66.53 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/5.11, allocations: 0.7283 MB / 2.411 GB, free: 66.51 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008842/5.119, allocations: 12.38 MB / 2.423 GB, free: 56.5 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000764/5.119, allocations: 1.396 MB / 2.425 GB, free: 55.78 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002075/5.121, allocations: 431.2 kB / 2.425 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008576/5.122, allocations: 0.7141 MB / 2.426 GB, free: 55.74 MB / 0.7136 GB Notification: Performance of SimCode: time 1.001e-06/5.122, allocations: 0 / 2.426 GB, free: 55.74 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09152/5.214, allocations: 51.93 MB / 2.477 GB, free: 47.09 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/5.214, allocations: 254.1 kB / 2.477 GB, free: 46.75 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.863/9.077, allocations: 0 / 2.477 GB, free: 46.75 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)