Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.922/1.922, allocations: 289.9 MB / 297.4 MB, free: 6.422 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001533/0.001533, allocations: 168.9 kB / 366.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, allocations: 205.3 MB / 0.626 GB, free: 7.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009267/0.0009267, allocations: 94.42 kB / 0.74 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/3.018e-05, allocations: 4 kB / 0.8598 GB, free: 13.01 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7829/0.7829, allocations: 116.3 MB / 0.9733 GB, free: 76.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.214/1.997, allocations: 454.8 MB / 1.417 GB, free: 102.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/1.997, allocations: 102.7 kB / 1.418 GB, free: 102.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.266/6.263, allocations: 1.162 GB / 2.579 GB, free: 123.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.723e-06/6.263, allocations: 3.031 kB / 2.579 GB, free: 123.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0005719/6.263, allocations: 56.11 kB / 2.579 GB, free: 123.7 MB / 0.948 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.007219/6.27, allocations: 2.088 MB / 2.581 GB, free: 122.1 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/6.271, allocations: 6.875 kB / 2.581 GB, free: 122.1 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00277/6.273, allocations: 459.5 kB / 2.582 GB, free: 121.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007182/6.281, allocations: 2.288 MB / 2.584 GB, free: 120.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.845e-05/6.281, allocations: 38.84 kB / 2.584 GB, free: 120.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004143/6.281, allocations: 81.8 kB / 2.584 GB, free: 120.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001996/6.283, allocations: 0.7738 MB / 2.585 GB, free: 120.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/6.285, allocations: 1.086 MB / 2.586 GB, free: 119.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.399e-05/6.285, allocations: 7.938 kB / 2.586 GB, free: 119.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/6.285, allocations: 3.953 kB / 2.586 GB, free: 119.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.371e-05/6.286, allocations: 32 kB / 2.586 GB, free: 119.2 MB / 0.948 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.009076/6.295, allocations: 6.687 MB / 2.592 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/6.296, allocations: 1.138 MB / 2.594 GB, free: 110.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004247/6.296, allocations: 301.6 kB / 2.594 GB, free: 110.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004448/6.301, allocations: 2.886 MB / 2.597 GB, free: 107.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004893/6.301, allocations: 329.9 kB / 2.597 GB, free: 107 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007959/6.302, allocations: 70.72 kB / 2.597 GB, free: 106.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=60): time 5.591e-06/6.302, allocations: 3.406 kB / 2.597 GB, free: 106.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=60): time 0.00529/6.307, allocations: 1.294 MB / 2.598 GB, free: 105.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/6.307, allocations: 169.5 kB / 2.598 GB, free: 105.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/6.31, allocations: 1.244 MB / 2.6 GB, free: 104.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001103/6.31, allocations: 29.64 kB / 2.6 GB, free: 104.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00076/6.311, allocations: 0.8839 MB / 2.601 GB, free: 103.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/6.311, allocations: 205 kB / 2.601 GB, free: 103.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/6.311, allocations: 0 / 2.601 GB, free: 103.1 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.026e-05/6.311, allocations: 349.3 kB / 2.601 GB, free: 102.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/6.311, allocations: 258.6 kB / 2.601 GB, free: 102.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/6.312, allocations: 0.6854 MB / 2.602 GB, free: 101.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004372/6.316, allocations: 1.001 MB / 2.603 GB, free: 100.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/6.316, allocations: 4 kB / 2.603 GB, free: 100.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005762/6.322, allocations: 1.63 MB / 2.605 GB, free: 99.04 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001092/6.323, allocations: 4.541 MB / 2.609 GB, free: 94.11 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.512e-05/6.323, allocations: 19.94 kB / 2.609 GB, free: 94.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.909e-05/6.323, allocations: 16 kB / 2.609 GB, free: 94.07 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000919/6.324, allocations: 247.6 kB / 2.609 GB, free: 93.83 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.431e-05/6.324, allocations: 23.92 kB / 2.609 GB, free: 93.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/6.326, allocations: 103.6 kB / 2.609 GB, free: 93.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/6.326, allocations: 63.97 kB / 2.609 GB, free: 93.64 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/6.326, allocations: 4 kB / 2.609 GB, free: 93.64 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00505/6.331, allocations: 1.415 MB / 2.611 GB, free: 92.22 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.989e-05/6.331, allocations: 12 kB / 2.611 GB, free: 92.21 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/6.331, allocations: 20 kB / 2.611 GB, free: 92.19 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008852/6.332, allocations: 248.1 kB / 2.611 GB, free: 91.95 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.263e-05/6.332, allocations: 23.94 kB / 2.611 GB, free: 91.93 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/6.334, allocations: 91.78 kB / 2.611 GB, free: 91.84 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/6.334, allocations: 51.98 kB / 2.611 GB, free: 91.79 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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.0003143/6.334, allocations: 152.5 kB / 2.611 GB, free: 91.63 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005141/6.339, allocations: 1.267 MB / 2.613 GB, free: 90.35 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005086/6.34, allocations: 161.9 kB / 2.613 GB, free: 90.19 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005343/6.345, allocations: 1.493 MB / 2.614 GB, free: 88.69 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/6.345, allocations: 8 kB / 2.614 GB, free: 88.68 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/6.345, allocations: 0 / 2.614 GB, free: 88.68 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00427/6.349, allocations: 1.349 MB / 2.616 GB, free: 87.29 MB / 0.948 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.007683/6.357, allocations: 2.562 MB / 2.618 GB, free: 84.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/6.357, allocations: 0 / 2.618 GB, free: 84.69 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006694/6.358, allocations: 139.8 kB / 2.618 GB, free: 84.55 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/6.358, allocations: 24.84 kB / 2.618 GB, free: 84.53 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.07e-05/6.358, allocations: 15.98 kB / 2.618 GB, free: 84.51 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007877/6.359, allocations: 1.276 MB / 2.619 GB, free: 83.12 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/6.359, allocations: 4.031 kB / 2.619 GB, free: 83.12 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005582/6.365, allocations: 1.864 MB / 2.621 GB, free: 81.22 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/6.366, allocations: 326.9 kB / 2.622 GB, free: 80.88 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006287/6.366, allocations: 11.98 kB / 2.622 GB, free: 80.87 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/6.368, allocations: 83.7 kB / 2.622 GB, free: 80.79 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/6.368, allocations: 52.44 kB / 2.622 GB, free: 80.73 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/6.368, allocations: 35.97 kB / 2.622 GB, free: 80.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.002449/6.37, allocations: 0.9195 MB / 2.623 GB, free: 79.79 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.11e-07/6.37, allocations: 0 / 2.623 GB, free: 79.79 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.006135/6.377, allocations: 1.002 MB / 2.624 GB, free: 78.79 MB / 0.948 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) * 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 (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.009393/6.386, allocations: 3.703 MB / 2.627 GB, free: 75.28 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002212/6.388, allocations: 1.363 MB / 2.629 GB, free: 73.88 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/6.388, allocations: 0 / 2.629 GB, free: 73.88 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006581/6.389, allocations: 444.1 kB / 2.629 GB, free: 73.43 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00367/6.393, allocations: 0.6199 MB / 2.63 GB, free: 72.84 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007584/6.4, allocations: 2.74 MB / 2.632 GB, free: 70.06 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/6.401, allocations: 1.41 MB / 2.634 GB, free: 68.62 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002932/6.404, allocations: 0.5924 MB / 2.634 GB, free: 68.07 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008461/6.405, allocations: 0.6945 MB / 2.635 GB, free: 67.38 MB / 0.948 GB Notification: Performance of SimCode: time 1.132e-06/6.405, allocations: 0 / 2.635 GB, free: 67.38 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08506/6.49, allocations: 48 MB / 2.682 GB, free: 20.03 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/6.491, allocations: 176.1 kB / 2.682 GB, free: 19.83 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.846/10.34, allocations: 3.938 kB / 2.682 GB, free: 19.83 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)