Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",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.665/1.665, allocations: 289.9 MB / 297.4 MB, free: 6.324 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.001439/0.001439, allocations: 176.9 kB / 366.7 MB, free: 1.656 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.733/1.733, allocations: 205.2 MB / 0.626 GB, free: 7.133 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.0009573/0.000957, allocations: 86.39 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.066e-05, allocations: 8 kB / 0.8598 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7891/0.7892, allocations: 116.3 MB / 0.9733 GB, free: 76.2 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.369/7.158, allocations: 2.395 GB / 3.368 GB, free: 90.14 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/7.159, allocations: 97.47 kB / 3.368 GB, free: 90.05 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 9.945/17.1, allocations: 2.653 GB / 6.021 GB, free: 41.61 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.154e-06/17.1, allocations: 7.938 kB / 6.021 GB, free: 41.61 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.001505/17.11, allocations: 163.4 kB / 6.021 GB, free: 41.45 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1244 * Number of variables: 1244 Notification: Performance of Generate backend data structure: time 0.02546/17.13, allocations: 6.185 MB / 6.027 GB, free: 35.19 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/17.13, allocations: 14 kB / 6.027 GB, free: 35.18 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/17.14, allocations: 1.486 MB / 6.029 GB, free: 33.68 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01905/17.16, allocations: 7.407 MB / 6.036 GB, free: 26.22 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003138/17.16, allocations: 152 kB / 6.036 GB, free: 26.07 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002177/17.16, allocations: 299.9 kB / 6.036 GB, free: 25.78 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01254/17.18, allocations: 5.329 MB / 6.041 GB, free: 20.44 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01561/17.19, allocations: 5.894 MB / 6.047 GB, free: 14.41 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002286/17.19, allocations: 4 kB / 6.047 GB, free: 14.41 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001404/17.19, allocations: 11.83 kB / 6.047 GB, free: 14.4 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002053/17.19, allocations: 225.4 kB / 6.047 GB, free: 14.18 MB / 1.01 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.04855/17.24, allocations: 27.2 MB / 6.074 GB, free: 1.469 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7424/17.98, allocations: 5.328 MB / 6.079 GB, free: 111.9 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004361/17.99, allocations: 2.377 MB / 6.082 GB, free: 111.8 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001177/17.99, allocations: 0.92 MB / 6.082 GB, free: 110.9 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004125/17.99, allocations: 2.17 MB / 6.085 GB, free: 110.7 MB / 1.026 GB Notification: Performance of pre-optimization done (n=324): time 6.572e-06/17.99, allocations: 0 / 6.085 GB, free: 110.7 MB / 1.026 GB Notification: Performance of matching and sorting (n=328): time 0.02712/18.02, allocations: 10.91 MB / 6.095 GB, free: 108.3 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/18.02, allocations: 303.9 kB / 6.095 GB, free: 108 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01012/18.03, allocations: 4.137 MB / 6.1 GB, free: 107.8 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.001461/18.03, allocations: 35 kB / 6.1 GB, free: 107.7 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.004558/18.04, allocations: 2.701 MB / 6.102 GB, free: 107.1 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.002135/18.04, allocations: 1.092 MB / 6.103 GB, free: 106.5 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000221/18.04, allocations: 3.969 kB / 6.103 GB, free: 106.5 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0002522/18.04, allocations: 438.3 kB / 6.104 GB, free: 106.2 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002614/18.04, allocations: 1.667 MB / 6.105 GB, free: 106.2 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003287/18.05, allocations: 2.553 MB / 6.108 GB, free: 105.3 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004169/18.05, allocations: 2.223 MB / 6.11 GB, free: 105.2 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/18.05, allocations: 3.625 kB / 6.11 GB, free: 105.2 MB / 1.026 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01005/18.06, allocations: 4.813 MB / 6.115 GB, free: 104.9 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.001579/18.06, allocations: 6.371 MB / 6.121 GB, free: 98.04 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.414e-05/18.06, allocations: 18.17 kB / 6.121 GB, free: 98.04 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005953/18.06, allocations: 198.7 kB / 6.121 GB, free: 98.03 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003214/18.07, allocations: 0.7642 MB / 6.122 GB, free: 98.03 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002764/18.07, allocations: 3.374 MB / 6.125 GB, free: 95.65 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006668/18.08, allocations: 0.518 MB / 6.126 GB, free: 95.62 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/18.08, allocations: 142.6 kB / 6.126 GB, free: 95.62 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/18.08, allocations: 5.391 kB / 6.126 GB, free: 95.62 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006989/18.08, allocations: 4.261 MB / 6.13 GB, free: 95.51 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.289e-05/18.08, allocations: 23.86 kB / 6.13 GB, free: 95.51 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005826/18.08, allocations: 198.9 kB / 6.13 GB, free: 95.5 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003107/18.09, allocations: 0.7557 MB / 6.131 GB, free: 95.5 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003914/18.09, allocations: 3.926 MB / 6.135 GB, free: 92.87 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006702/18.1, allocations: 0.5115 MB / 6.135 GB, free: 92.85 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005091/18.1, allocations: 134.1 kB / 6.135 GB, free: 92.85 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (399): * Single equations (assignments): 393 * 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.001116/18.1, allocations: 215 kB / 6.136 GB, free: 92.71 MB / 1.026 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009036/18.11, allocations: 4.107 MB / 6.14 GB, free: 92.32 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/18.11, allocations: 495.1 kB / 6.14 GB, free: 92.07 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/18.12, allocations: 4.515 MB / 6.144 GB, free: 91.84 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.222e-05/18.12, allocations: 36.34 kB / 6.144 GB, free: 91.84 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/18.12, allocations: 2.031 kB / 6.144 GB, free: 91.84 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007211/18.13, allocations: 3.798 MB / 6.148 GB, free: 91.57 MB / 1.026 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.02957/18.16, allocations: 11.31 MB / 6.159 GB, free: 90.45 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/18.16, allocations: 5.219 kB / 6.159 GB, free: 90.45 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003849/18.16, allocations: 0.7481 MB / 6.16 GB, free: 90.45 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005342/18.16, allocations: 157.7 kB / 6.16 GB, free: 90.43 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005121/18.16, allocations: 56.17 kB / 6.16 GB, free: 90.43 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002713/18.16, allocations: 3.258 MB / 6.163 GB, free: 88.05 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/18.16, allocations: 8.312 kB / 6.163 GB, free: 88.05 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/18.18, allocations: 7.591 MB / 6.171 GB, free: 86.72 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005689/18.18, allocations: 1.197 MB / 6.172 GB, free: 86.38 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003132/18.19, allocations: 37.98 kB / 6.172 GB, free: 86.38 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007472/18.19, allocations: 454 kB / 6.172 GB, free: 86.36 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009901/18.2, allocations: 201 kB / 6.173 GB, free: 86.36 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007397/18.2, allocations: 128.9 kB / 6.173 GB, free: 86.36 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.007945/18.2, allocations: 3.199 MB / 6.176 GB, free: 86.18 MB / 1.026 GB Notification: Performance of sort global known variables: time 5.11e-07/18.2, allocations: 2.844 kB / 6.176 GB, free: 86.18 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.01754/18.22, allocations: 2.939 MB / 6.179 GB, free: 86.18 MB / 1.026 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.01781/18.24, allocations: 12.22 MB / 6.191 GB, free: 82.54 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.01207/18.25, allocations: 6.991 MB / 6.197 GB, free: 81.94 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/18.25, allocations: 5.688 kB / 6.198 GB, free: 81.94 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.003587/18.26, allocations: 2.189 MB / 6.2 GB, free: 81.76 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01724/18.27, allocations: 2.936 MB / 6.203 GB, free: 81.71 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03801/18.31, allocations: 13.35 MB / 6.216 GB, free: 79.36 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008029/18.32, allocations: 4.668 MB / 6.22 GB, free: 78.51 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.01842/18.34, allocations: 4.386 MB / 6.224 GB, free: 78.45 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006409/18.34, allocations: 2.481 MB / 6.227 GB, free: 78.45 MB / 1.026 GB Notification: Performance of SimCode: time 1.232e-06/18.34, allocations: 3.406 kB / 6.227 GB, free: 78.45 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.284/18.63, allocations: 177.2 MB / 6.4 GB, free: 27.43 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/18.63, allocations: 186.6 kB / 6.4 GB, free: 27.23 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/28.75, allocations: 3.938 kB / 6.4 GB, free: 27.23 MB / 1.026 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)