Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.604/2.604, allocations: 287.3 MB / 302.3 MB, free: 8.332 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.001538/0.001538, allocations: 181.5 kB / 370.8 MB, free: 10.85 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.208/2.208, allocations: 205.4 MB / 0.6295 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 89.8 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000499/0.0004992, allocations: 16.69 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2421, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.08393/0.3261, allocations: 56.25 MB / 1.033 GB, free: 3.902 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.03836/0.3645, allocations: 17.01 MB / 1.05 GB, free: 2.863 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003417/0.368, allocations: 75.5 kB / 1.05 GB, free: 2.789 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.005214/0.3733, allocations: 0.9951 MB / 1.051 GB, free: 1.789 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.01184/0.3851, allocations: 2.647 MB / 1.053 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01381/0.399, allocations: 3.14 MB / 1.057 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.008326/0.4073, allocations: 3.174 MB / 1.06 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003297/0.4107, allocations: 1.36 MB / 1.061 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005003/0.4157, allocations: 1.463 MB / 1.062 GB, free: 6.004 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.4185, allocations: 0.9681 MB / 1.063 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0006732/0.4192, allocations: 76 kB / 1.063 GB, free: 4.957 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005685/0.4249, allocations: 1.443 MB / 1.065 GB, free: 3.512 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.4261, allocations: 418.4 kB / 1.065 GB, free: 3.102 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.4271, allocations: 444.5 kB / 1.066 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.6902/1.117, allocations: 2.675 MB / 1.068 GB, free: 22.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/1.117, allocations: 0 / 1.068 GB, free: 22.1 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.907e-06/1.117, allocations: 0.5938 kB / 1.068 GB, free: 22.1 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001307/1.118, allocations: 0 / 1.068 GB, free: 22.1 MB / 0.6823 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.01066/1.128, allocations: 2.336 MB / 1.071 GB, free: 20.84 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/1.128, allocations: 9.156 kB / 1.071 GB, free: 20.84 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008787/1.129, allocations: 191.1 kB / 1.071 GB, free: 20.79 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003992/1.133, allocations: 389.1 kB / 1.071 GB, free: 20.68 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008547/1.142, allocations: 1.652 MB / 1.073 GB, free: 20.27 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001134/1.143, allocations: 170.2 kB / 1.073 GB, free: 20.27 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007302/1.144, allocations: 131.9 kB / 1.073 GB, free: 20.27 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007636/1.151, allocations: 1.449 MB / 1.074 GB, free: 20.02 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-05/1.152, allocations: 5.188 kB / 1.074 GB, free: 20.02 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003361/1.152, allocations: 51.75 kB / 1.074 GB, free: 20.02 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/1.152, allocations: 33.02 kB / 1.074 GB, free: 20.02 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008034/1.16, allocations: 1.124 MB / 1.076 GB, free: 20 MB / 0.6823 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.01708/1.177, allocations: 7.442 MB / 1.083 GB, free: 15.78 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004111/1.182, allocations: 1.362 MB / 1.084 GB, free: 15.16 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007761/1.189, allocations: 2.607 MB / 1.087 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003237/1.193, allocations: 472.8 kB / 1.087 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001937/1.195, allocations: 96.61 kB / 1.087 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=65): time 7.374e-06/1.195, allocations: 4 kB / 1.087 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=65): time 0.008896/1.204, allocations: 1.286 MB / 1.089 GB, free: 13.43 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.07e-05/1.204, allocations: 136.2 kB / 1.089 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00338/1.207, allocations: 1.554 MB / 1.09 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002961/1.207, allocations: 46.73 kB / 1.09 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000978/1.208, allocations: 0.9013 MB / 1.091 GB, free: 12.74 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/1.209, allocations: 229 kB / 1.091 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.263e-05/1.209, allocations: 18.84 kB / 1.091 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001018/1.209, allocations: 351.6 kB / 1.092 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001542/1.211, allocations: 383.5 kB / 1.092 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/1.212, allocations: 0.7569 MB / 1.093 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/1.214, allocations: 0.5008 MB / 1.093 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/1.214, allocations: 2.75 kB / 1.093 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0046/1.219, allocations: 1.326 MB / 1.095 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.00109/1.22, allocations: 3.817 MB / 1.098 GB, free: 23.57 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.274e-05/1.22, allocations: 15.92 kB / 1.098 GB, free: 23.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.79e-05/1.22, allocations: 16.28 kB / 1.098 GB, free: 23.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/1.222, allocations: 264.4 kB / 1.099 GB, free: 23.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.669e-05/1.222, allocations: 20.62 kB / 1.099 GB, free: 23.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002884/1.225, allocations: 146 kB / 1.099 GB, free: 23.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/1.226, allocations: 55.31 kB / 1.099 GB, free: 23.55 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/1.226, allocations: 11.97 kB / 1.099 GB, free: 23.55 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004323/1.23, allocations: 1.141 MB / 1.1 GB, free: 23.49 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.128e-05/1.23, allocations: 14.72 kB / 1.1 GB, free: 23.49 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.92e-05/1.23, allocations: 21.59 kB / 1.1 GB, free: 23.49 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/1.232, allocations: 263.9 kB / 1.1 GB, free: 23.49 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.573e-05/1.232, allocations: 30.22 kB / 1.1 GB, free: 23.48 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/1.235, allocations: 144.5 kB / 1.1 GB, free: 23.47 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000236/1.235, allocations: 50.19 kB / 1.1 GB, free: 23.47 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 120 * 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.00134/1.236, allocations: 494.3 kB / 1.101 GB, free: 23.28 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005731/1.237, allocations: 169.9 kB / 1.101 GB, free: 23.19 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004344/1.241, allocations: 1.13 MB / 1.102 GB, free: 23.08 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/1.241, allocations: 7.656 kB / 1.102 GB, free: 23.08 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.241, allocations: 0 / 1.102 GB, free: 23.08 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003313/1.245, allocations: 0.8292 MB / 1.103 GB, free: 23 MB / 0.698 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.00825/1.253, allocations: 2.636 MB / 1.106 GB, free: 22.49 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/1.253, allocations: 11.67 kB / 1.106 GB, free: 22.48 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/1.254, allocations: 158.9 kB / 1.106 GB, free: 22.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003318/1.255, allocations: 42.36 kB / 1.106 GB, free: 22.47 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/1.255, allocations: 22.81 kB / 1.106 GB, free: 22.47 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/1.257, allocations: 1.397 MB / 1.107 GB, free: 21.21 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.257, allocations: 0 / 1.107 GB, free: 21.21 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005719/1.262, allocations: 1.771 MB / 1.109 GB, free: 20.66 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.264, allocations: 385.7 kB / 1.109 GB, free: 20.46 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005217/1.264, allocations: 27.94 kB / 1.109 GB, free: 20.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/1.267, allocations: 123 kB / 1.109 GB, free: 20.45 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/1.267, allocations: 60.19 kB / 1.109 GB, free: 20.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/1.267, allocations: 34.8 kB / 1.109 GB, free: 20.45 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.002568/1.27, allocations: 1.127 MB / 1.111 GB, free: 20.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.41e-07/1.27, allocations: 0 / 1.111 GB, free: 20.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.005271/1.275, allocations: 1.018 MB / 1.112 GB, free: 20.14 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 67 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008651/1.284, allocations: 3.289 MB / 1.115 GB, free: 18.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.006177/1.29, allocations: 1.704 MB / 1.116 GB, free: 18.28 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.29, allocations: 2.312 kB / 1.116 GB, free: 18.28 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.002177/1.292, allocations: 0.5728 MB / 1.117 GB, free: 18.16 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01131/1.304, allocations: 0.8662 MB / 1.118 GB, free: 18.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/1.321, allocations: 11.06 MB / 1.129 GB, free: 9.367 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/1.323, allocations: 1.444 MB / 1.13 GB, free: 8.609 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.003355/1.326, allocations: 437.8 kB / 1.13 GB, free: 8.492 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001775/1.328, allocations: 0.75 MB / 1.131 GB, free: 8.48 MB / 0.698 GB Notification: Performance of SimCode: time 1.312e-06/1.328, allocations: 0 / 1.131 GB, free: 8.48 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1581/1.486, allocations: 50.71 MB / 1.181 GB, free: 7.227 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003917/1.486, allocations: 249.9 kB / 1.181 GB, free: 6.941 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.652/6.139, allocations: 0 / 1.181 GB, free: 6.941 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)