Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.527/1.527, allocations: 249.3 MB / 261.8 MB, free: 5.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 182.6 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001006/0.001006, allocations: 92.33 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.625e-05, allocations: 4 kB / 0.788 GB, free: 97.03 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2347, allocations: 106.3 MB / 0.8919 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.766/2, allocations: 440.4 MB / 1.322 GB, free: 251.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/2.001, allocations: 100.5 kB / 1.322 GB, free: 251.3 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.26/6.261, allocations: 1.103 GB / 2.425 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.362e-06/6.261, allocations: 0 / 2.425 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000269/6.261, allocations: 63.33 kB / 2.425 GB, free: 124.4 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.005889/6.267, allocations: 2.176 MB / 2.427 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/6.267, allocations: 10.28 kB / 2.427 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003152/6.267, allocations: 183.3 kB / 2.427 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001803/6.269, allocations: 374.4 kB / 2.428 GB, free: 123.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006283/6.275, allocations: 2.452 MB / 2.43 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/6.276, allocations: 103.1 kB / 2.43 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/6.276, allocations: 140.1 kB / 2.43 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/6.278, allocations: 1.369 MB / 2.431 GB, free: 122.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/6.278, allocations: 0 / 2.431 GB, free: 122.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/6.279, allocations: 54.47 kB / 2.432 GB, free: 122.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-05/6.279, allocations: 34.38 kB / 2.432 GB, free: 122.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/6.28, allocations: 0.9132 MB / 2.432 GB, free: 122.4 MB / 0.8855 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.009858/6.29, allocations: 7.136 MB / 2.439 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/6.292, allocations: 1.178 MB / 2.441 GB, free: 117.4 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004846/6.292, allocations: 349.6 kB / 2.441 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003658/6.296, allocations: 2.265 MB / 2.443 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000577/6.296, allocations: 388 kB / 2.443 GB, free: 115.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007747/6.297, allocations: 90.11 kB / 2.444 GB, free: 115.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 3.967e-06/6.297, allocations: 0 / 2.444 GB, free: 115.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.001287/6.298, allocations: 0.7426 MB / 2.444 GB, free: 114.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/6.298, allocations: 166.1 kB / 2.444 GB, free: 114.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/6.3, allocations: 1.296 MB / 2.446 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.797e-05/6.3, allocations: 44.91 kB / 2.446 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007617/6.301, allocations: 0.8988 MB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/6.301, allocations: 241.4 kB / 2.447 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/6.301, allocations: 19.28 kB / 2.447 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.696e-05/6.302, allocations: 349.3 kB / 2.447 GB, free: 112.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004353/6.302, allocations: 285 kB / 2.447 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006465/6.303, allocations: 0.6673 MB / 2.448 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/6.303, allocations: 425.3 kB / 2.449 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/6.303, allocations: 0 / 2.449 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001715/6.305, allocations: 1.119 MB / 2.45 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000916/6.306, allocations: 3.733 MB / 2.453 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.067e-05/6.306, allocations: 14.2 kB / 2.453 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.822e-05/6.306, allocations: 15.19 kB / 2.453 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009482/6.307, allocations: 255.7 kB / 2.454 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.881e-05/6.307, allocations: 18.72 kB / 2.454 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/6.309, allocations: 126.7 kB / 2.454 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/6.309, allocations: 55.64 kB / 2.454 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/6.309, allocations: 3.594 kB / 2.454 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001429/6.31, allocations: 0.9436 MB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/6.31, allocations: 18.53 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/6.31, allocations: 19.22 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008855/6.311, allocations: 243.9 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.969e-05/6.311, allocations: 17.73 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/6.313, allocations: 132.5 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/6.313, allocations: 60.91 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (121): * Single equations (assignments): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0002952/6.313, allocations: 176.2 kB / 2.455 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/6.313, allocations: 169.9 kB / 2.455 GB, free: 107 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/6.315, allocations: 0.9801 MB / 2.456 GB, free: 106.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/6.315, allocations: 18.88 kB / 2.456 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/6.315, allocations: 0 / 2.456 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009317/6.316, allocations: 0.6821 MB / 2.457 GB, free: 106.4 MB / 0.8855 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.004084/6.32, allocations: 2.281 MB / 2.459 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/6.32, allocations: 3.969 kB / 2.459 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007311/6.321, allocations: 159.2 kB / 2.459 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/6.321, allocations: 24.38 kB / 2.46 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/6.321, allocations: 26.89 kB / 2.46 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008951/6.322, allocations: 1.304 MB / 2.461 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/6.322, allocations: 3.594 kB / 2.461 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/6.324, allocations: 1.388 MB / 2.462 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008108/6.325, allocations: 353 kB / 2.463 GB, free: 103 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/6.325, allocations: 18.97 kB / 2.463 GB, free: 103 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009458/6.326, allocations: 104.9 kB / 2.463 GB, free: 103 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/6.326, allocations: 66.08 kB / 2.463 GB, free: 103 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.768e-05/6.327, allocations: 28.47 kB / 2.463 GB, free: 103 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.00156/6.328, allocations: 0.9924 MB / 2.464 GB, free: 102.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.21e-07/6.328, allocations: 0 / 2.464 GB, free: 102.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004448/6.333, allocations: 1.121 MB / 2.465 GB, free: 102.3 MB / 0.8855 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.x[1],mov.filter.x[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) * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004721/6.337, allocations: 3.15 MB / 2.468 GB, free: 100.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002506/6.34, allocations: 1.491 MB / 2.469 GB, free: 99.98 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/6.34, allocations: 2.812 kB / 2.469 GB, free: 99.98 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007609/6.341, allocations: 495.3 kB / 2.47 GB, free: 99.74 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004145/6.345, allocations: 0.7603 MB / 2.471 GB, free: 99.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007781/6.353, allocations: 2.885 MB / 2.473 GB, free: 98.41 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/6.354, allocations: 1.446 MB / 2.475 GB, free: 97.63 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002972/6.357, allocations: 0.5538 MB / 2.475 GB, free: 97.58 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009889/6.358, allocations: 0.7185 MB / 2.476 GB, free: 97.02 MB / 0.8855 GB Notification: Performance of SimCode: time 2.635e-06/6.358, allocations: 0 / 2.476 GB, free: 97.02 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/6.461, allocations: 58.42 MB / 2.533 GB, free: 57.56 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/6.462, allocations: 226.4 kB / 2.533 GB, free: 57.33 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.38/10.84, allocations: 0 / 2.533 GB, free: 57.33 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)