Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.51/2.51, allocations: 284.9 MB / 292.4 MB, free: 10.5 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.001534/0.001534, allocations: 168.9 kB / 360.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001073/0.001072, allocations: 81.5 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.276e-05/2.274e-05, allocations: 4 kB / 0.8509 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8121/0.8121, allocations: 115.3 MB / 0.9634 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.322/2.135, allocations: 453.7 MB / 1.406 GB, free: 115.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/2.135, allocations: 91.2 kB / 1.407 GB, free: 115.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.866/8.001, allocations: 1.162 GB / 2.568 GB, free: 123.9 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.495e-06/8.001, allocations: 0 / 2.568 GB, free: 123.9 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0004117/8.002, allocations: 48.83 kB / 2.568 GB, free: 123.8 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.006721/8.008, allocations: 2.093 MB / 2.57 GB, free: 121.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/8.008, allocations: 8.031 kB / 2.57 GB, free: 121.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003752/8.012, allocations: 457.5 kB / 2.571 GB, free: 121.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009083/8.021, allocations: 2.293 MB / 2.573 GB, free: 119 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.192e-05/8.021, allocations: 40.86 kB / 2.573 GB, free: 118.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003223/8.022, allocations: 72 kB / 2.573 GB, free: 118.9 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002292/8.024, allocations: 0.7813 MB / 2.574 GB, free: 118.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002543/8.027, allocations: 1.084 MB / 2.575 GB, free: 116.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.831e-05/8.027, allocations: 3.938 kB / 2.575 GB, free: 116.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/8.027, allocations: 10.98 kB / 2.575 GB, free: 116.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.516e-05/8.027, allocations: 28 kB / 2.575 GB, free: 116.9 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.01232/8.039, allocations: 6.686 MB / 2.581 GB, free: 109.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/8.041, allocations: 1.137 MB / 2.582 GB, free: 108.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00074/8.042, allocations: 303.4 kB / 2.583 GB, free: 108.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006747/8.049, allocations: 2.873 MB / 2.586 GB, free: 105 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007307/8.049, allocations: 340.6 kB / 2.586 GB, free: 104.7 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009554/8.05, allocations: 78.02 kB / 2.586 GB, free: 104.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=60): time 5.551e-06/8.05, allocations: 0 / 2.586 GB, free: 104.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=60): time 0.009167/8.06, allocations: 1.291 MB / 2.587 GB, free: 103.3 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/8.06, allocations: 158.8 kB / 2.587 GB, free: 103.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/8.062, allocations: 1.244 MB / 2.589 GB, free: 101.9 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002672/8.063, allocations: 29.7 kB / 2.589 GB, free: 101.9 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000972/8.064, allocations: 0.8839 MB / 2.589 GB, free: 101 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003222/8.064, allocations: 205 kB / 2.59 GB, free: 100.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.906e-05/8.064, allocations: 2.969 kB / 2.59 GB, free: 100.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.899e-05/8.064, allocations: 341.9 kB / 2.59 GB, free: 100.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006415/8.065, allocations: 262.6 kB / 2.59 GB, free: 100.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000876/8.066, allocations: 0.6951 MB / 2.591 GB, free: 99.28 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007973/8.074, allocations: 0.9931 MB / 2.592 GB, free: 98.34 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.138e-05/8.074, allocations: 4 kB / 2.592 GB, free: 98.34 MB / 0.948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.01015/8.084, allocations: 1.638 MB / 2.593 GB, free: 96.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001031/8.085, allocations: 4.542 MB / 2.598 GB, free: 91.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6e-05/8.085, allocations: 15.98 kB / 2.598 GB, free: 91.76 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.095e-05/8.085, allocations: 20 kB / 2.598 GB, free: 91.74 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/8.087, allocations: 247.6 kB / 2.598 GB, free: 91.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.607e-05/8.087, allocations: 27.88 kB / 2.598 GB, free: 91.47 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/8.089, allocations: 99.67 kB / 2.598 GB, free: 91.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002829/8.09, allocations: 59.97 kB / 2.598 GB, free: 91.31 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/8.09, allocations: 4 kB / 2.598 GB, free: 91.31 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009275/8.099, allocations: 1.416 MB / 2.6 GB, free: 89.89 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.501e-05/8.099, allocations: 12 kB / 2.6 GB, free: 89.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/8.099, allocations: 23.98 kB / 2.6 GB, free: 89.86 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/8.101, allocations: 243.5 kB / 2.6 GB, free: 89.62 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.403e-05/8.101, allocations: 24.09 kB / 2.6 GB, free: 89.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/8.103, allocations: 95.84 kB / 2.6 GB, free: 89.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/8.103, allocations: 51.98 kB / 2.6 GB, free: 89.45 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.0003503/8.104, allocations: 152.2 kB / 2.6 GB, free: 89.3 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008864/8.113, allocations: 1.263 MB / 2.602 GB, free: 88.02 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003775/8.113, allocations: 169.9 kB / 2.602 GB, free: 87.86 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009416/8.123, allocations: 1.487 MB / 2.603 GB, free: 86.36 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/8.123, allocations: 8 kB / 2.603 GB, free: 86.36 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/8.123, allocations: 3.953 kB / 2.603 GB, free: 86.35 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008173/8.131, allocations: 1.346 MB / 2.605 GB, free: 84.96 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.0121/8.143, allocations: 2.561 MB / 2.607 GB, free: 82.36 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/8.143, allocations: 3.938 kB / 2.607 GB, free: 82.36 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/8.144, allocations: 135.9 kB / 2.607 GB, free: 82.22 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002263/8.145, allocations: 24.84 kB / 2.607 GB, free: 82.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/8.145, allocations: 15.98 kB / 2.607 GB, free: 82.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009968/8.146, allocations: 1.272 MB / 2.608 GB, free: 80.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/8.146, allocations: 1.938 kB / 2.608 GB, free: 80.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00962/8.155, allocations: 1.872 MB / 2.61 GB, free: 78.89 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/8.156, allocations: 330.8 kB / 2.611 GB, free: 78.54 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003951/8.157, allocations: 4 kB / 2.611 GB, free: 78.54 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/8.159, allocations: 83.72 kB / 2.611 GB, free: 78.46 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/8.159, allocations: 56.42 kB / 2.611 GB, free: 78.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/8.159, allocations: 35.97 kB / 2.611 GB, free: 78.37 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00189/8.161, allocations: 0.9195 MB / 2.612 GB, free: 77.46 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.81e-07/8.161, allocations: 0 / 2.612 GB, free: 77.46 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005877/8.167, allocations: 0.9938 MB / 2.613 GB, free: 76.46 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.01322/8.18, allocations: 3.713 MB / 2.616 GB, free: 72.96 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003069/8.183, allocations: 1.363 MB / 2.618 GB, free: 71.57 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.096e-06/8.183, allocations: 0 / 2.618 GB, free: 71.57 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001001/8.184, allocations: 436.5 kB / 2.618 GB, free: 71.13 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005123/8.189, allocations: 0.6268 MB / 2.619 GB, free: 70.53 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008865/8.198, allocations: 2.745 MB / 2.621 GB, free: 67.75 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/8.199, allocations: 1.402 MB / 2.623 GB, free: 66.32 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.004319/8.204, allocations: 0.5876 MB / 2.623 GB, free: 65.77 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/8.205, allocations: 0.7016 MB / 2.624 GB, free: 65.07 MB / 0.948 GB Notification: Performance of SimCode: time 1.082e-06/8.205, allocations: 0 / 2.624 GB, free: 65.07 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/8.34, allocations: 47.99 MB / 2.671 GB, free: 17.57 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/8.34, allocations: 172.4 kB / 2.671 GB, free: 17.38 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.668/13.01, allocations: 0 / 2.671 GB, free: 17.38 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)