Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 387.1 MB / 399.7 MB, free: 9.488 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 180.9 kB / 492.3 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.68/1.68, allocations: 221.3 MB / 0.7872 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 89.56 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.451e-05/4.462e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3068, allocations: 142.4 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.138/6.445, allocations: 2.222 GB / 3.434 GB, free: 79.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/6.445, allocations: 95.83 kB / 3.434 GB, free: 79.11 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.74/17.19, allocations: 2.718 GB / 6.152 GB, free: 62.04 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.405e-06/17.19, allocations: 4 kB / 6.152 GB, free: 62.04 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001539/17.19, allocations: 162.3 kB / 6.152 GB, free: 61.88 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1243 * Number of variables: 1243 Notification: Performance of Generate backend data structure: time 0.02581/17.21, allocations: 6.192 MB / 6.158 GB, free: 55.62 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/17.21, allocations: 12.03 kB / 6.158 GB, free: 55.61 MB / 1.214 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003799/17.22, allocations: 0.6581 MB / 6.159 GB, free: 54.94 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01172/17.23, allocations: 1.497 MB / 6.16 GB, free: 53.43 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02304/17.25, allocations: 7.469 MB / 6.168 GB, free: 45.89 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005686/17.25, allocations: 373.5 kB / 6.168 GB, free: 45.52 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003134/17.26, allocations: 499.5 kB / 6.168 GB, free: 45.04 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02244/17.28, allocations: 6.579 MB / 6.175 GB, free: 38.32 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003728/17.28, allocations: 11.94 kB / 6.175 GB, free: 38.31 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002285/17.28, allocations: 196 kB / 6.175 GB, free: 38.12 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002793/17.28, allocations: 225.3 kB / 6.175 GB, free: 37.9 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01556/17.3, allocations: 5.695 MB / 6.181 GB, free: 32.19 MB / 1.214 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.06059/17.36, allocations: 28.22 MB / 6.208 GB, free: 2.418 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007518/17.37, allocations: 4.431 MB / 6.213 GB, free: 13.86 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005111/17.37, allocations: 2.498 MB / 6.215 GB, free: 11.36 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001706/17.37, allocations: 0.9233 MB / 6.216 GB, free: 10.25 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006315/17.38, allocations: 2.188 MB / 6.218 GB, free: 8.02 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 8.797e-06/17.38, allocations: 0 / 6.218 GB, free: 8.02 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 0.9942/18.37, allocations: 9.76 MB / 6.228 GB, free: 168.6 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.966e-05/18.37, allocations: 166.9 kB / 6.228 GB, free: 168.5 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01138/18.38, allocations: 4.528 MB / 6.232 GB, free: 168.2 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001019/18.39, allocations: 95.91 kB / 6.232 GB, free: 168.1 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.003118/18.39, allocations: 2.732 MB / 6.235 GB, free: 168 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.001676/18.39, allocations: 1.142 MB / 6.236 GB, free: 167.6 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002261/18.39, allocations: 66.22 kB / 6.236 GB, free: 167.6 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0002142/18.39, allocations: 438.3 kB / 6.237 GB, free: 167.3 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002933/18.39, allocations: 1.749 MB / 6.238 GB, free: 167.3 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003466/18.4, allocations: 2.572 MB / 6.241 GB, free: 166.5 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003804/18.4, allocations: 2.273 MB / 6.243 GB, free: 166.5 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/18.4, allocations: 3.156 kB / 6.243 GB, free: 166.5 MB / 1.229 GB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01286/18.41, allocations: 5.092 MB / 6.248 GB, free: 166 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.002081/18.42, allocations: 6.2 MB / 6.254 GB, free: 159.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.945e-05/18.42, allocations: 13.22 kB / 6.254 GB, free: 159.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008905/18.42, allocations: 211.8 kB / 6.254 GB, free: 159.4 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00462/18.42, allocations: 0.7726 MB / 6.255 GB, free: 159.4 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003684/18.43, allocations: 3.416 MB / 6.258 GB, free: 157 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008923/18.43, allocations: 0.61 MB / 6.259 GB, free: 157 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007567/18.44, allocations: 137 kB / 6.259 GB, free: 157 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/18.44, allocations: 3.031 kB / 6.259 GB, free: 157 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01013/18.45, allocations: 4.637 MB / 6.264 GB, free: 156.8 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.808e-05/18.45, allocations: 16.02 kB / 6.264 GB, free: 156.8 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006282/18.45, allocations: 212.9 kB / 6.264 GB, free: 156.8 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003403/18.45, allocations: 0.7579 MB / 6.265 GB, free: 156.8 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004127/18.45, allocations: 4.05 MB / 6.269 GB, free: 154.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006729/18.46, allocations: 0.5987 MB / 6.269 GB, free: 154.1 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006503/18.46, allocations: 133.2 kB / 6.269 GB, free: 154.1 MB / 1.229 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 (397): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.001435/18.46, allocations: 342.9 kB / 6.27 GB, free: 153.9 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00184/18.46, allocations: 0.4927 MB / 6.27 GB, free: 153.7 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009752/18.47, allocations: 4.906 MB / 6.275 GB, free: 153.4 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.885e-05/18.47, allocations: 35.06 kB / 6.275 GB, free: 153.4 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/18.47, allocations: 3.125 kB / 6.275 GB, free: 153.4 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005872/18.48, allocations: 4.073 MB / 6.279 GB, free: 153.1 MB / 1.229 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.02623/18.51, allocations: 12.18 MB / 6.291 GB, free: 152.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/18.51, allocations: 7.188 kB / 6.291 GB, free: 152.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003746/18.51, allocations: 0.7371 MB / 6.291 GB, free: 152.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006087/18.51, allocations: 171.9 kB / 6.292 GB, free: 152.1 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003934/18.51, allocations: 92.11 kB / 6.292 GB, free: 152.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002422/18.51, allocations: 3.317 MB / 6.295 GB, free: 149.6 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/18.51, allocations: 5.188 kB / 6.295 GB, free: 149.6 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01132/18.52, allocations: 7.739 MB / 6.303 GB, free: 148.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004594/18.53, allocations: 1.234 MB / 6.304 GB, free: 147.9 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001833/18.53, allocations: 79.55 kB / 6.304 GB, free: 147.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005935/18.54, allocations: 0.4989 MB / 6.304 GB, free: 147.9 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005342/18.54, allocations: 201.6 kB / 6.304 GB, free: 147.9 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000428/18.54, allocations: 122.2 kB / 6.305 GB, free: 147.9 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.009796/18.55, allocations: 3.555 MB / 6.308 GB, free: 147.7 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.793e-06/18.55, allocations: 3.5 kB / 6.308 GB, free: 147.7 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01986/18.57, allocations: 3.126 MB / 6.311 GB, free: 147.7 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.s[1],val.filter.s[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.medium.Xi[1],hex.ele[1].vol2.dynBal.U,hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.medium.Xi[1],hex.ele[2].vol2.dynBal.U,hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.medium.Xi[1],hex.ele[3].vol2.dynBal.U,hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.medium.Xi[1],hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,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 (319): * Single equations (assignments): 311 * 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.01901/18.59, allocations: 12.1 MB / 6.323 GB, free: 144 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01236/18.6, allocations: 7.332 MB / 6.33 GB, free: 143.4 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/18.6, allocations: 4.188 kB / 6.33 GB, free: 143.4 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.003646/18.6, allocations: 2.324 MB / 6.332 GB, free: 143.2 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01654/18.62, allocations: 3.039 MB / 6.335 GB, free: 143.2 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03397/18.65, allocations: 13.7 MB / 6.349 GB, free: 140.9 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006721/18.66, allocations: 4.673 MB / 6.353 GB, free: 140 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.01645/18.68, allocations: 4.474 MB / 6.358 GB, free: 140 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005296/18.68, allocations: 2.482 MB / 6.36 GB, free: 140 MB / 1.229 GB Notification: Performance of SimCode: time 1.172e-06/18.68, allocations: 0 / 6.36 GB, free: 140 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3211/19, allocations: 213.4 MB / 6.568 GB, free: 77.18 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/19, allocations: 241 kB / 6.569 GB, free: 76.86 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/29.85, allocations: 0 / 6.569 GB, free: 76.86 MB / 1.229 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat does not exist to compare? outputFormat=mat