Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",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.8366/0.8366, allocations: 143.3 MB / 158.3 MB, free: 5.762 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.001155/0.001155, allocations: 177.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.453/1.453, allocations: 223.2 MB / 447.7 MB, free: 4.812 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.001067/0.001067, allocations: 95.55 kB / 0.5187 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0018/0.0018, allocations: 264.5 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004567/0.0004566, allocations: 16 kB / 0.6929 GB, free: 59.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1829, allocations: 82.8 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.33/1.513, allocations: 405.6 MB / 1.17 GB, free: 264.7 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/1.513, allocations: 99.34 kB / 1.17 GB, free: 264.7 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.746/5.26, allocations: 1.151 GB / 2.321 GB, free: 82.79 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.455e-06/5.26, allocations: 0 / 2.321 GB, free: 82.79 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002327/5.26, allocations: 59.66 kB / 2.321 GB, free: 82.79 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: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.006309/5.266, allocations: 2.624 MB / 2.324 GB, free: 81.76 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/5.266, allocations: 13.11 kB / 2.324 GB, free: 81.76 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004242/5.267, allocations: 179.7 kB / 2.324 GB, free: 81.72 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001623/5.268, allocations: 372 kB / 2.324 GB, free: 81.6 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005916/5.274, allocations: 2.458 MB / 2.327 GB, free: 81.23 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.116e-05/5.274, allocations: 103.3 kB / 2.327 GB, free: 81.22 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002006/5.275, allocations: 130.5 kB / 2.327 GB, free: 81.22 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002401/5.277, allocations: 1.394 MB / 2.328 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/5.277, allocations: 6.344 kB / 2.328 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/5.277, allocations: 48.62 kB / 2.328 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.706e-05/5.277, allocations: 48.34 kB / 2.329 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00197/5.279, allocations: 1.036 MB / 2.33 GB, free: 80.94 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.009096/5.288, allocations: 7.187 MB / 2.337 GB, free: 76.93 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/5.29, allocations: 1.282 MB / 2.338 GB, free: 76.33 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004314/5.294, allocations: 2.58 MB / 2.34 GB, free: 75 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007595/5.295, allocations: 443 kB / 2.341 GB, free: 74.95 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007035/5.296, allocations: 86.7 kB / 2.341 GB, free: 74.92 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=68): time 3.216e-06/5.296, allocations: 0 / 2.341 GB, free: 74.92 MB / 0.7136 GB Notification: Performance of matching and sorting (n=68): time 0.002315/5.298, allocations: 1.201 MB / 2.342 GB, free: 74.68 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/5.298, allocations: 117.3 kB / 2.342 GB, free: 74.55 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/5.3, allocations: 1.276 MB / 2.343 GB, free: 74.39 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.9e-05/5.3, allocations: 46.2 kB / 2.343 GB, free: 74.36 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006955/5.301, allocations: 0.8878 MB / 2.344 GB, free: 74.04 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/5.301, allocations: 247.5 kB / 2.345 GB, free: 73.89 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/5.301, allocations: 18.56 kB / 2.345 GB, free: 73.89 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.372e-05/5.301, allocations: 338.6 kB / 2.345 GB, free: 73.59 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006263/5.302, allocations: 329.5 kB / 2.345 GB, free: 73.59 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008041/5.302, allocations: 0.6999 MB / 2.346 GB, free: 73.14 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007349/5.303, allocations: 439.4 kB / 2.346 GB, free: 73.11 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/5.303, allocations: 3.562 kB / 2.346 GB, free: 73.11 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001994/5.305, allocations: 1.181 MB / 2.347 GB, free: 72.95 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007363/5.306, allocations: 3.824 MB / 2.351 GB, free: 68.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/5.306, allocations: 12.47 kB / 2.351 GB, free: 68.93 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/5.306, allocations: 16.12 kB / 2.351 GB, free: 68.93 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008639/5.307, allocations: 238.5 kB / 2.351 GB, free: 68.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.077e-05/5.307, allocations: 24.41 kB / 2.351 GB, free: 68.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/5.308, allocations: 134.4 kB / 2.352 GB, free: 68.92 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.461e-05/5.308, allocations: 50.75 kB / 2.352 GB, free: 68.92 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.036e-06/5.308, allocations: 6.75 kB / 2.352 GB, free: 68.92 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001723/5.31, allocations: 1.009 MB / 2.353 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/5.31, allocations: 9.125 kB / 2.353 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/5.31, allocations: 19.7 kB / 2.353 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007961/5.311, allocations: 238.2 kB / 2.353 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/5.311, allocations: 17.78 kB / 2.353 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/5.312, allocations: 126.8 kB / 2.353 GB, free: 68.87 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-05/5.312, allocations: 58.44 kB / 2.353 GB, free: 68.87 MB / 0.7136 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 (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.001028/5.313, allocations: 492.3 kB / 2.354 GB, free: 68.68 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/5.314, allocations: 170.7 kB / 2.354 GB, free: 68.59 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/5.316, allocations: 1.069 MB / 2.355 GB, free: 68.49 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/5.316, allocations: 6.75 kB / 2.355 GB, free: 68.49 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/5.316, allocations: 3.953 kB / 2.355 GB, free: 68.49 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001284/5.317, allocations: 0.7823 MB / 2.356 GB, free: 68.4 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.004335/5.321, allocations: 2.51 MB / 2.358 GB, free: 67.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/5.321, allocations: 7.344 kB / 2.358 GB, free: 67.96 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008072/5.322, allocations: 161.1 kB / 2.358 GB, free: 67.96 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000204/5.322, allocations: 25.67 kB / 2.358 GB, free: 67.96 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-05/5.322, allocations: 24.64 kB / 2.358 GB, free: 67.96 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008405/5.323, allocations: 1.322 MB / 2.359 GB, free: 66.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/5.323, allocations: 7.391 kB / 2.359 GB, free: 66.71 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/5.326, allocations: 1.686 MB / 2.361 GB, free: 66.18 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007214/5.326, allocations: 365 kB / 2.361 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/5.327, allocations: 25 kB / 2.361 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009926/5.328, allocations: 102.7 kB / 2.362 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/5.328, allocations: 61.84 kB / 2.362 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.315e-05/5.328, allocations: 36.12 kB / 2.362 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001496/5.329, allocations: 1.07 MB / 2.363 GB, free: 65.83 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.11e-07/5.329, allocations: 0 / 2.363 GB, free: 65.83 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003335/5.333, allocations: 1.071 MB / 2.364 GB, free: 65.67 MB / 0.7136 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 (79): * Single equations (assignments): 71 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004884/5.338, allocations: 3.773 MB / 2.367 GB, free: 63.96 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002696/5.34, allocations: 1.492 MB / 2.369 GB, free: 63.82 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/5.34, allocations: 0 / 2.369 GB, free: 63.82 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0009434/5.341, allocations: 0.5378 MB / 2.369 GB, free: 63.71 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/5.345, allocations: 0.8581 MB / 2.37 GB, free: 63.7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009573/5.355, allocations: 11.46 MB / 2.381 GB, free: 54.66 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002385/5.357, allocations: 1.425 MB / 2.383 GB, free: 69.95 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.002092/5.359, allocations: 433.9 kB / 2.383 GB, free: 69.93 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008219/5.36, allocations: 0.7416 MB / 2.384 GB, free: 69.92 MB / 0.7292 GB Notification: Performance of SimCode: time 9.32e-07/5.36, allocations: 0 / 2.384 GB, free: 69.92 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08458/5.445, allocations: 55.81 MB / 2.438 GB, free: 66.89 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/5.445, allocations: 253.6 kB / 2.439 GB, free: 66.56 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.164/9.609, allocations: 7.281 kB / 2.439 GB, free: 66.56 MB / 0.7292 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)