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.38/1.38, allocations: 251.9 MB / 266.9 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 188 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.4 MB / 0.5775 GB, free: 20.17 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.0009022/0.0009022, allocations: 87.89 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003425, allocations: 10.69 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2399, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.058/7.298, allocations: 2.511 GB / 3.412 GB, free: 228.9 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/7.298, allocations: 101.5 kB / 3.412 GB, free: 228.9 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 10.05/17.35, allocations: 2.61 GB / 6.022 GB, free: 87.76 MB / 0.948 GB Notification: Performance of FrontEnd: time 4.048e-06/17.35, allocations: 2.75 kB / 6.022 GB, free: 87.76 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.001406/17.35, allocations: 160.9 kB / 6.022 GB, free: 87.74 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.0316/17.38, allocations: 7.504 MB / 6.029 GB, free: 84.78 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.225e-05/17.38, allocations: 7.719 kB / 6.029 GB, free: 84.78 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005107/17.39, allocations: 0.6792 MB / 6.03 GB, free: 84.71 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01323/17.4, allocations: 1.497 MB / 6.031 GB, free: 84.33 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0262/17.43, allocations: 7.494 MB / 6.039 GB, free: 83.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000638/17.43, allocations: 376.1 kB / 6.039 GB, free: 83.39 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002943/17.43, allocations: 0.5042 MB / 6.04 GB, free: 83.38 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02379/17.45, allocations: 6.743 MB / 6.046 GB, free: 82.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004288/17.45, allocations: 17.19 kB / 6.046 GB, free: 82.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00249/17.46, allocations: 204.4 kB / 6.046 GB, free: 82.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000321/17.46, allocations: 226.4 kB / 6.047 GB, free: 82.88 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01792/17.48, allocations: 5.908 MB / 6.052 GB, free: 82.84 MB / 0.948 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.06123/17.54, allocations: 28.13 MB / 6.08 GB, free: 72.36 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007575/17.54, allocations: 4.333 MB / 6.084 GB, free: 71.71 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/17.55, allocations: 0.9128 MB / 6.085 GB, free: 70.77 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005746/17.55, allocations: 2.22 MB / 6.087 GB, free: 70.62 MB / 0.948 GB Notification: Performance of pre-optimization done (n=324): time 1.093e-05/17.55, allocations: 3.938 kB / 6.087 GB, free: 70.62 MB / 0.948 GB Notification: Performance of matching and sorting (n=328): time 0.03398/17.59, allocations: 11.72 MB / 6.099 GB, free: 66.75 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/17.59, allocations: 244.5 kB / 6.099 GB, free: 66.49 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01303/17.6, allocations: 4.598 MB / 6.103 GB, free: 64.95 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001296/17.6, allocations: 97.3 kB / 6.103 GB, free: 64.87 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004512/17.6, allocations: 2.735 MB / 6.106 GB, free: 62.78 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002291/17.61, allocations: 1.135 MB / 6.107 GB, free: 61.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008353/17.61, allocations: 63.78 kB / 6.107 GB, free: 61.85 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0004474/17.61, allocations: 443.8 kB / 6.108 GB, free: 61.49 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004005/17.61, allocations: 1.789 MB / 6.109 GB, free: 60.86 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/17.62, allocations: 2.714 MB / 6.112 GB, free: 59.24 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004784/17.62, allocations: 2.309 MB / 6.114 GB, free: 58.28 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.862e-05/17.62, allocations: 3.781 kB / 6.114 GB, free: 58.28 MB / 0.948 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.01418/17.64, allocations: 5.177 MB / 6.119 GB, free: 56.25 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001585/17.64, allocations: 6.21 MB / 6.125 GB, free: 49.55 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.178e-05/17.64, allocations: 15.81 kB / 6.125 GB, free: 49.55 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007927/17.64, allocations: 211.9 kB / 6.126 GB, free: 49.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004272/17.64, allocations: 0.7546 MB / 6.126 GB, free: 49.43 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003939/17.65, allocations: 3.469 MB / 6.13 GB, free: 46.48 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00889/17.66, allocations: 0.5945 MB / 6.13 GB, free: 46.39 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/17.66, allocations: 131.8 kB / 6.13 GB, free: 46.37 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/17.66, allocations: 6.969 kB / 6.13 GB, free: 46.37 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01359/17.67, allocations: 4.717 MB / 6.135 GB, free: 44.57 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/17.67, allocations: 21.61 kB / 6.135 GB, free: 44.56 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007851/17.67, allocations: 206.5 kB / 6.135 GB, free: 44.51 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004459/17.68, allocations: 0.752 MB / 6.136 GB, free: 44.44 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004872/17.68, allocations: 4.112 MB / 6.14 GB, free: 41.01 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008199/17.69, allocations: 0.5812 MB / 6.141 GB, free: 40.93 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/17.69, allocations: 132.5 kB / 6.141 GB, free: 40.9 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 () * Number of clocked 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.00824/17.7, allocations: 2.426 MB / 6.143 GB, free: 39.79 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003347/17.7, allocations: 0.5023 MB / 6.144 GB, free: 39.54 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01366/17.72, allocations: 4.933 MB / 6.148 GB, free: 36.11 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.468e-05/17.72, allocations: 32 kB / 6.148 GB, free: 36.07 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/17.72, allocations: 0 / 6.148 GB, free: 36.07 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007429/17.72, allocations: 4.111 MB / 6.152 GB, free: 32.45 MB / 0.948 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.03239/17.76, allocations: 11.98 MB / 6.164 GB, free: 22.71 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/17.76, allocations: 7.938 kB / 6.164 GB, free: 22.71 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003749/17.76, allocations: 0.7421 MB / 6.165 GB, free: 22.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005592/17.76, allocations: 171 kB / 6.165 GB, free: 21.96 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006864/17.76, allocations: 96.14 kB / 6.165 GB, free: 21.88 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/17.76, allocations: 3.356 MB / 6.168 GB, free: 18.53 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/17.76, allocations: 10.16 kB / 6.168 GB, free: 18.52 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/17.78, allocations: 8.063 MB / 6.176 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005611/17.78, allocations: 1.246 MB / 6.177 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002539/17.79, allocations: 90.77 kB / 6.178 GB, free: 10.01 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006684/17.79, allocations: 0.5026 MB / 6.178 GB, free: 9.684 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007808/17.79, allocations: 206.5 kB / 6.178 GB, free: 9.551 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006806/17.79, allocations: 114.8 kB / 6.178 GB, free: 9.453 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.008821/17.8, allocations: 3.622 MB / 6.182 GB, free: 6.508 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.81e-07/17.8, allocations: 2.844 kB / 6.182 GB, free: 6.508 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01836/17.82, allocations: 3.19 MB / 6.185 GB, free: 3.352 MB / 0.948 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) * Number of clocked states: 0 () * 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.02312/17.84, allocations: 12.5 MB / 6.197 GB, free: 8.5 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01528/17.86, allocations: 7.332 MB / 6.204 GB, free: 2.059 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/17.86, allocations: 12.94 kB / 6.204 GB, free: 2.047 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.004775/17.86, allocations: 2.353 MB / 6.207 GB, free: 0 / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.7677/18.63, allocations: 3.144 MB / 6.21 GB, free: 111.3 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06523/18.7, allocations: 34.85 MB / 6.244 GB, free: 87.49 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01688/18.71, allocations: 4.69 MB / 6.248 GB, free: 86.64 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.02152/18.74, allocations: 2.686 MB / 6.251 GB, free: 86.6 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01253/18.75, allocations: 2.564 MB / 6.254 GB, free: 86.59 MB / 0.9636 GB Notification: Performance of SimCode: time 2.595e-06/18.75, allocations: 0 / 6.254 GB, free: 86.59 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4034/19.15, allocations: 199.3 MB / 6.448 GB, free: 60.53 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/19.15, allocations: 279.5 kB / 6.448 GB, free: 60.17 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.14/28.29, allocations: 0 / 6.448 GB, free: 60.17 MB / 0.9636 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)