Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.737/1.737, allocations: 289.9 MB / 297.4 MB, free: 6.441 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.001598/0.001598, allocations: 184.1 kB / 366.7 MB, free: 1.703 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.876/1.876, allocations: 205.3 MB / 0.626 GB, free: 7.16 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.0009108/0.0009107, allocations: 93.44 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.194e-05/3.195e-05, allocations: 8 kB / 0.8598 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7809/0.7809, allocations: 116.3 MB / 0.9733 GB, free: 76.31 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.257/2.038, allocations: 448.3 MB / 1.411 GB, free: 109.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/2.039, allocations: 90.48 kB / 1.411 GB, free: 109.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.109/6.147, allocations: 1.128 GB / 2.539 GB, free: 147.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.512e-06/6.147, allocations: 0 / 2.539 GB, free: 147.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002286/6.147, allocations: 58.34 kB / 2.539 GB, free: 147.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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.005055/6.152, allocations: 2.182 MB / 2.541 GB, free: 146.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/6.153, allocations: 9.781 kB / 2.541 GB, free: 146.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001993/6.155, allocations: 381 kB / 2.542 GB, free: 146.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00563/6.16, allocations: 2.463 MB / 2.544 GB, free: 145.1 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.998e-05/6.16, allocations: 38.5 kB / 2.544 GB, free: 145.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/6.16, allocations: 81.25 kB / 2.544 GB, free: 145.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001582/6.162, allocations: 0.859 MB / 2.545 GB, free: 144.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/6.164, allocations: 1.183 MB / 2.546 GB, free: 144.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/6.164, allocations: 3.938 kB / 2.546 GB, free: 144.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/6.164, allocations: 7.672 kB / 2.546 GB, free: 144.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.494e-05/6.164, allocations: 35.56 kB / 2.546 GB, free: 144.1 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.009116/6.173, allocations: 6.939 MB / 2.553 GB, free: 138.3 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/6.175, allocations: 1.17 MB / 2.554 GB, free: 137.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/6.175, allocations: 336.2 kB / 2.554 GB, free: 137.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00379/6.179, allocations: 2.253 MB / 2.557 GB, free: 135.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005572/6.18, allocations: 372.5 kB / 2.557 GB, free: 134.9 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006525/6.18, allocations: 62.55 kB / 2.557 GB, free: 134.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=68): time 4.268e-06/6.18, allocations: 5.875 kB / 2.557 GB, free: 134.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=68): time 0.001834/6.182, allocations: 0.8123 MB / 2.558 GB, free: 134.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/6.182, allocations: 168.7 kB / 2.558 GB, free: 134.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/6.184, allocations: 1.201 MB / 2.559 GB, free: 133.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.338e-05/6.184, allocations: 28.83 kB / 2.559 GB, free: 133.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006713/6.184, allocations: 0.8879 MB / 2.56 GB, free: 132.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/6.185, allocations: 228.1 kB / 2.56 GB, free: 132.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/6.185, allocations: 0 / 2.56 GB, free: 132.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.304e-05/6.185, allocations: 348.9 kB / 2.561 GB, free: 132.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003849/6.185, allocations: 280.9 kB / 2.561 GB, free: 132.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005589/6.186, allocations: 0.6586 MB / 2.561 GB, free: 131.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/6.187, allocations: 468.7 kB / 2.562 GB, free: 131.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/6.187, allocations: 3.969 kB / 2.562 GB, free: 131.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002117/6.189, allocations: 1.11 MB / 2.563 GB, free: 130.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009671/6.19, allocations: 3.729 MB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.743e-05/6.19, allocations: 7.812 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/6.19, allocations: 17.41 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009816/6.191, allocations: 259.2 kB / 2.567 GB, free: 126.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/6.191, allocations: 18.81 kB / 2.567 GB, free: 126.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/6.193, allocations: 110.9 kB / 2.567 GB, free: 126.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/6.193, allocations: 52.2 kB / 2.567 GB, free: 126.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/6.193, allocations: 3.844 kB / 2.567 GB, free: 126.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001772/6.195, allocations: 0.8923 MB / 2.568 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/6.195, allocations: 13.75 kB / 2.568 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/6.195, allocations: 14.28 kB / 2.568 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008677/6.196, allocations: 259.2 kB / 2.568 GB, free: 126.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/6.196, allocations: 15.56 kB / 2.568 GB, free: 126.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/6.197, allocations: 111.5 kB / 2.568 GB, free: 126.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.793e-05/6.197, allocations: 51.8 kB / 2.568 GB, free: 126.2 MB / 0.948 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.0002524/6.197, allocations: 148.3 kB / 2.569 GB, free: 126 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001738/6.199, allocations: 0.7775 MB / 2.569 GB, free: 125.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/6.199, allocations: 167 kB / 2.569 GB, free: 125.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002282/6.201, allocations: 0.9808 MB / 2.57 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/6.201, allocations: 11.89 kB / 2.57 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/6.201, allocations: 0 / 2.57 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00119/6.203, allocations: 0.7016 MB / 2.571 GB, free: 124.6 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.003874/6.207, allocations: 2.131 MB / 2.573 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/6.207, allocations: 0 / 2.573 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000724/6.207, allocations: 159.2 kB / 2.573 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001866/6.208, allocations: 30.88 kB / 2.573 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.338e-05/6.208, allocations: 14.95 kB / 2.573 GB, free: 123.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007792/6.208, allocations: 1.273 MB / 2.575 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/6.208, allocations: 3.656 kB / 2.575 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/6.21, allocations: 1.39 MB / 2.576 GB, free: 121.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007068/6.211, allocations: 345.3 kB / 2.576 GB, free: 120.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/6.211, allocations: 3.953 kB / 2.576 GB, free: 120.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009464/6.212, allocations: 101.5 kB / 2.576 GB, free: 120.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/6.212, allocations: 64.36 kB / 2.576 GB, free: 120.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.022e-05/6.212, allocations: 33.69 kB / 2.577 GB, free: 120.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001268/6.214, allocations: 0.8972 MB / 2.577 GB, free: 120.2 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.9e-07/6.214, allocations: 0 / 2.577 GB, free: 120.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003335/6.217, allocations: 1.077 MB / 2.578 GB, free: 119.9 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.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.004312/6.221, allocations: 3.109 MB / 2.581 GB, free: 118.1 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002049/6.223, allocations: 1.431 MB / 2.583 GB, free: 117.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/6.223, allocations: 0 / 2.583 GB, free: 117.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006511/6.224, allocations: 463.5 kB / 2.583 GB, free: 117.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003692/6.228, allocations: 0.7434 MB / 2.584 GB, free: 116.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/6.234, allocations: 2.82 MB / 2.587 GB, free: 115.4 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008192/6.235, allocations: 1.448 MB / 2.588 GB, free: 114.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.00234/6.237, allocations: 0.5492 MB / 2.589 GB, free: 114.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007467/6.238, allocations: 0.7183 MB / 2.589 GB, free: 113.4 MB / 0.948 GB Notification: Performance of SimCode: time 8.91e-07/6.238, allocations: 3.938 kB / 2.589 GB, free: 113.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08904/6.327, allocations: 51.09 MB / 2.639 GB, free: 64.91 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/6.327, allocations: 170.7 kB / 2.64 GB, free: 64.72 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.013/10.34, allocations: 0 / 2.64 GB, free: 64.72 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)