Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.325/1.325, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00127/0.001271, allocations: 183.3 kB / 325.8 MB, free: 2.691 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.294/1.294, allocations: 205 MB / 0.576 GB, free: 20.98 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.0006928/0.0006928, allocations: 91.97 kB / 0.6797 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002615/0.0002615, allocations: 12.19 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1445, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04125/0.1858, allocations: 52.74 MB / 0.9477 GB, free: 15.16 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02028/0.2061, allocations: 18.13 MB / 0.9654 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002477/0.2086, allocations: 83.5 kB / 0.9655 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003303/0.2119, allocations: 0.9826 MB / 0.9664 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.004388/0.2163, allocations: 2.145 MB / 0.9685 GB, free: 9.766 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.006191/0.2225, allocations: 3.056 MB / 0.9715 GB, free: 6.727 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005297/0.2278, allocations: 6.027 MB / 0.9774 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001631/0.2295, allocations: 1.341 MB / 0.9787 GB, free: 15.31 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.2317, allocations: 1.618 MB / 0.9803 GB, free: 13.69 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.233, allocations: 1.334 MB / 0.9816 GB, free: 12.35 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.2332, allocations: 72 kB / 0.9817 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002837/0.236, allocations: 1.805 MB / 0.9834 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0003662/0.2364, allocations: 430.1 kB / 0.9838 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0007406/0.2372, allocations: 0.9243 MB / 0.9847 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004454/0.2416, allocations: 3.294 MB / 0.988 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.2417, allocations: 3.984 kB / 0.988 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2417, allocations: 0 / 0.988 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.144e-05/0.2417, allocations: 0 / 0.988 GB, free: 5.809 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.005022/0.2467, allocations: 2.21 MB / 0.9901 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.2468, allocations: 12.03 kB / 0.9901 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002773/0.2471, allocations: 173.1 kB / 0.9903 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/0.25, allocations: 493.4 kB / 0.9908 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.2524, allocations: 1.65 MB / 0.9924 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003471/0.2528, allocations: 158.1 kB / 0.9925 GB, free: 1 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.2529, allocations: 120 kB / 0.9927 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.2552, allocations: 1.399 MB / 0.994 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.2552, allocations: 3.938 kB / 0.994 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-05/0.2553, allocations: 48 kB / 0.9941 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.2553, allocations: 28 kB / 0.9941 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002351/0.2577, allocations: 1.144 MB / 0.9952 GB, free: 14.15 MB / 0.6511 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.007438/0.2651, allocations: 7.002 MB / 1.002 GB, free: 6.613 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.2677, allocations: 1.438 MB / 1.003 GB, free: 5.059 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009048/0.2686, allocations: 442.2 kB / 1.004 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003861/0.2725, allocations: 3.067 MB / 1.007 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009397/0.2735, allocations: 470.8 kB / 1.007 GB, free: 0.7422 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002764/0.2737, allocations: 87.19 kB / 1.007 GB, free: 0.6562 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=60): time 1.954e-06/0.2737, allocations: 0 / 1.007 GB, free: 0.6562 MB / 0.6511 GB Notification: Performance of matching and sorting (n=60): time 0.002823/0.2766, allocations: 1.299 MB / 1.009 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.2767, allocations: 137.1 kB / 1.009 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/0.2784, allocations: 1.59 MB / 1.01 GB, free: 13.57 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/0.2784, allocations: 45.7 kB / 1.01 GB, free: 13.52 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006099/0.279, allocations: 0.8919 MB / 1.011 GB, free: 12.62 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.2792, allocations: 205 kB / 1.011 GB, free: 12.42 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2793, allocations: 93.66 kB / 1.012 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2794, allocations: 345.9 kB / 1.012 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008724/0.2803, allocations: 413.7 kB / 1.012 GB, free: 11.57 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.2814, allocations: 0.8165 MB / 1.013 GB, free: 10.57 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.2834, allocations: 1.182 MB / 1.014 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.2834, allocations: 0 / 1.014 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002423/0.2858, allocations: 1.372 MB / 1.016 GB, free: 7.848 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.000234/0.286, allocations: 445.3 kB / 1.016 GB, free: 7.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.2861, allocations: 12 kB / 1.016 GB, free: 7.238 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.2861, allocations: 19.94 kB / 1.016 GB, free: 7.219 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008946/0.287, allocations: 271.6 kB / 1.016 GB, free: 6.953 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.911e-05/0.287, allocations: 19.94 kB / 1.016 GB, free: 6.934 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009778/0.288, allocations: 140.4 kB / 1.016 GB, free: 6.797 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.01e-05/0.2881, allocations: 51.98 kB / 1.016 GB, free: 6.746 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.33e-06/0.2881, allocations: 4 kB / 1.016 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002174/0.2903, allocations: 1.165 MB / 1.018 GB, free: 5.57 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.2903, allocations: 16.03 kB / 1.018 GB, free: 5.555 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.2903, allocations: 16 kB / 1.018 GB, free: 5.539 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008761/0.2912, allocations: 267.6 kB / 1.018 GB, free: 5.277 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.2912, allocations: 23.92 kB / 1.018 GB, free: 5.254 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008968/0.2921, allocations: 124.5 kB / 1.018 GB, free: 5.133 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.238e-05/0.2922, allocations: 51.98 kB / 1.018 GB, free: 5.082 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,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): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005117/0.2927, allocations: 493.2 kB / 1.019 GB, free: 4.59 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.2929, allocations: 173.8 kB / 1.019 GB, free: 4.418 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00232/0.2953, allocations: 1.163 MB / 1.02 GB, free: 3.242 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.2953, allocations: 11.98 kB / 1.02 GB, free: 3.23 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2953, allocations: 7.938 kB / 1.02 GB, free: 3.223 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001776/0.2971, allocations: 1.006 MB / 1.021 GB, free: 2.164 MB / 0.6667 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.003604/0.3007, allocations: 2.445 MB / 1.023 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3007, allocations: 64 / 1.023 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000654/0.3014, allocations: 155.8 kB / 1.023 GB, free: 15.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.3015, allocations: 32.84 kB / 1.023 GB, free: 15.46 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-05/0.3016, allocations: 23.98 kB / 1.023 GB, free: 15.44 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.3026, allocations: 1.37 MB / 1.025 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3026, allocations: 0 / 1.025 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/0.3056, allocations: 1.635 MB / 1.026 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004342/0.306, allocations: 338.6 kB / 1.027 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.3062, allocations: 12 kB / 1.027 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008823/0.3071, allocations: 123.8 kB / 1.027 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.417e-05/0.3072, allocations: 48.48 kB / 1.027 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.648e-05/0.3073, allocations: 35.98 kB / 1.027 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001245/0.3085, allocations: 1.125 MB / 1.028 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3085, allocations: 0 / 1.028 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002043/0.3106, allocations: 0.9123 MB / 1.029 GB, free: 9.641 MB / 0.6823 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.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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004472/0.3151, allocations: 2.818 MB / 1.032 GB, free: 6.918 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003054/0.3181, allocations: 1.746 MB / 1.033 GB, free: 5.137 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3182, allocations: 128 / 1.033 GB, free: 5.137 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.3192, allocations: 0.576 MB / 1.034 GB, free: 4.547 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/0.3221, allocations: 0.7586 MB / 1.035 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/0.3421, allocations: 14.03 MB / 1.048 GB, free: 4.773 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00082/0.3429, allocations: 1.364 MB / 1.05 GB, free: 3.379 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001467/0.3444, allocations: 410.3 kB / 1.05 GB, free: 2.973 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000815/0.3452, allocations: 0.7257 MB / 1.051 GB, free: 2.246 MB / 0.698 GB Notification: Performance of SimCode: time 3.1e-07/0.3452, allocations: 0 / 1.051 GB, free: 2.246 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8961/1.241, allocations: 45.12 MB / 1.095 GB, free: 126 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001258/1.241, allocations: 291.2 kB / 1.095 GB, free: 125.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.997/5.239, allocations: 4 kB / 1.095 GB, free: 125.7 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)