Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",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.54/1.54, allocations: 249.3 MB / 261.8 MB, free: 5.824 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001091/0.001091, allocations: 174.5 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.001016/0.001016, allocations: 98.77 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.851e-05/3.853e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2541, allocations: 106.3 MB / 0.8919 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.975/7.229, allocations: 2.511 GB / 3.403 GB, free: 198 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/7.23, allocations: 91.95 kB / 3.403 GB, free: 197.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 10.23/17.46, allocations: 2.606 GB / 6.009 GB, free: 21.86 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.364e-06/17.46, allocations: 4 kB / 6.009 GB, free: 21.86 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0013/17.46, allocations: 166.7 kB / 6.009 GB, free: 21.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: 1252 * Number of variables: 1252 Notification: Performance of Generate backend data structure: time 0.02402/17.49, allocations: 6.206 MB / 6.015 GB, free: 15.42 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/17.49, allocations: 12.03 kB / 6.015 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003329/17.49, allocations: 0.6622 MB / 6.016 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/17.5, allocations: 1.498 MB / 6.017 GB, free: 13.23 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/17.52, allocations: 7.445 MB / 6.025 GB, free: 5.711 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003559/17.52, allocations: 373.6 kB / 6.025 GB, free: 5.344 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/17.52, allocations: 0.4998 MB / 6.026 GB, free: 4.844 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7911/18.32, allocations: 6.622 MB / 6.032 GB, free: 89.96 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001833/18.32, allocations: 14.75 kB / 6.032 GB, free: 89.96 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009598/18.32, allocations: 202.9 kB / 6.032 GB, free: 89.96 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002949/18.32, allocations: 221.1 kB / 6.032 GB, free: 89.95 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/18.33, allocations: 5.735 MB / 6.038 GB, free: 89.91 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.06332/18.4, allocations: 28.13 MB / 6.066 GB, free: 79.93 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008544/18.41, allocations: 4.248 MB / 6.07 GB, free: 79.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00553/18.41, allocations: 2.47 MB / 6.072 GB, free: 79.27 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001332/18.41, allocations: 0.9169 MB / 6.073 GB, free: 78.32 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005928/18.42, allocations: 2.154 MB / 6.075 GB, free: 78.19 MB / 0.948 GB Notification: Performance of pre-optimization done (n=324): time 1.069e-05/18.42, allocations: 3.219 kB / 6.075 GB, free: 78.19 MB / 0.948 GB Notification: Performance of matching and sorting (n=328): time 0.02906/18.45, allocations: 9.62 MB / 6.084 GB, free: 76.61 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/18.45, allocations: 246.4 kB / 6.085 GB, free: 76.35 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009556/18.46, allocations: 4.539 MB / 6.089 GB, free: 76.04 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/18.46, allocations: 98.92 kB / 6.089 GB, free: 76.01 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003456/18.46, allocations: 2.745 MB / 6.092 GB, free: 75.39 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001989/18.46, allocations: 1.133 MB / 6.093 GB, free: 74.81 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002733/18.46, allocations: 66.58 kB / 6.093 GB, free: 74.81 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002521/18.46, allocations: 445.6 kB / 6.094 GB, free: 74.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002697/18.47, allocations: 1.726 MB / 6.095 GB, free: 74.49 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003594/18.47, allocations: 2.642 MB / 6.098 GB, free: 73.61 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003569/18.47, allocations: 2.254 MB / 6.1 GB, free: 73.52 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/18.47, allocations: 5.281 kB / 6.1 GB, free: 73.52 MB / 0.948 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.009388/18.48, allocations: 5.038 MB / 6.105 GB, free: 73.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001552/18.49, allocations: 6.213 MB / 6.111 GB, free: 66.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.615e-05/18.49, allocations: 18.84 kB / 6.111 GB, free: 66.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007178/18.49, allocations: 217.7 kB / 6.111 GB, free: 66.49 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/18.49, allocations: 0.7519 MB / 6.112 GB, free: 66.49 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002882/18.49, allocations: 3.409 MB / 6.115 GB, free: 64.05 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008521/18.5, allocations: 0.5966 MB / 6.116 GB, free: 64.03 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/18.5, allocations: 136.3 kB / 6.116 GB, free: 64.03 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/18.5, allocations: 6.469 kB / 6.116 GB, free: 64.03 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007879/18.51, allocations: 4.583 MB / 6.12 GB, free: 63.88 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.704e-05/18.51, allocations: 14.75 kB / 6.12 GB, free: 63.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006092/18.51, allocations: 221.2 kB / 6.121 GB, free: 63.87 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/18.51, allocations: 0.7429 MB / 6.121 GB, free: 63.87 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003975/18.52, allocations: 4.053 MB / 6.125 GB, free: 61.13 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007887/18.53, allocations: 0.5811 MB / 6.126 GB, free: 61.11 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009569/18.53, allocations: 137.8 kB / 6.126 GB, free: 61.11 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (398): * Single equations (assignments): 392 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.001278/18.53, allocations: 346.8 kB / 6.126 GB, free: 60.97 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00193/18.53, allocations: 0.4999 MB / 6.127 GB, free: 60.71 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009287/18.54, allocations: 4.814 MB / 6.132 GB, free: 60.45 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/18.54, allocations: 33.33 kB / 6.132 GB, free: 60.45 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/18.54, allocations: 3.031 kB / 6.132 GB, free: 60.45 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006086/18.55, allocations: 3.994 MB / 6.136 GB, free: 60.15 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.02407/18.57, allocations: 11.86 MB / 6.147 GB, free: 59.27 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/18.57, allocations: 3.031 kB / 6.147 GB, free: 59.27 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003204/18.57, allocations: 0.7425 MB / 6.148 GB, free: 59.27 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005193/18.57, allocations: 166.8 kB / 6.148 GB, free: 59.25 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002823/18.57, allocations: 94.48 kB / 6.148 GB, free: 59.25 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004414/18.58, allocations: 3.319 MB / 6.151 GB, free: 72.81 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/18.58, allocations: 6.844 kB / 6.151 GB, free: 72.81 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/18.59, allocations: 7.902 MB / 6.159 GB, free: 71.44 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004917/18.6, allocations: 1.243 MB / 6.16 GB, free: 71.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001934/18.6, allocations: 82.92 kB / 6.16 GB, free: 71.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006103/18.6, allocations: 0.5066 MB / 6.161 GB, free: 71.08 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006056/18.6, allocations: 199.7 kB / 6.161 GB, free: 71.07 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003907/18.6, allocations: 120.6 kB / 6.161 GB, free: 71.07 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.007142/18.61, allocations: 3.563 MB / 6.165 GB, free: 70.87 MB / 0.9636 GB Notification: Performance of sort global known variables: time 4.41e-07/18.61, allocations: 0 / 6.165 GB, free: 70.87 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0185/18.63, allocations: 3.186 MB / 6.168 GB, free: 70.87 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.x[1],val.filter.x[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.U,hex.ele[1].vol2.dynBal.mXi[1],hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.U,hex.ele[2].vol2.dynBal.mXi[1],hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.U,hex.ele[3].vol2.dynBal.mXi[1],hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].vol2.dynBal.mXi[1],hex.ele[4].mas.T,con.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01951/18.65, allocations: 12.3 MB / 6.18 GB, free: 67.18 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01498/18.66, allocations: 7.304 MB / 6.187 GB, free: 66.54 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.988e-05/18.66, allocations: 4.781 kB / 6.187 GB, free: 66.54 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.004602/18.67, allocations: 2.287 MB / 6.189 GB, free: 66.34 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0198/18.69, allocations: 3.078 MB / 6.192 GB, free: 66.27 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03731/18.73, allocations: 13.71 MB / 6.206 GB, free: 63.92 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005252/18.73, allocations: 4.705 MB / 6.21 GB, free: 63.07 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.01443/18.75, allocations: 4.41 MB / 6.214 GB, free: 63.01 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004903/18.75, allocations: 2.479 MB / 6.217 GB, free: 63 MB / 0.9636 GB Notification: Performance of SimCode: time 1.312e-06/18.75, allocations: 0 / 6.217 GB, free: 63 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.115/19.87, allocations: 215.2 MB / 6.427 GB, free: 129.2 MB / 0.9948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/19.87, allocations: 245.7 kB / 6.427 GB, free: 128.9 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/30.49, allocations: 3.562 kB / 6.427 GB, free: 128.9 MB / 0.9948 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)