Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.462/2.462, allocations: 390.5 MB / 398 MB, free: 10.94 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.001433/0.001433, allocations: 176.8 kB / 491.2 MB, free: 1.59 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.62/1.62, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.0009196/0.0009195, allocations: 91.58 kB / 0.9269 GB, free: 13.85 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.608e-05/2.608e-05, allocations: 11.98 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3309, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.166/6.497, allocations: 2.222 GB / 3.434 GB, free: 54.18 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/6.497, allocations: 96.56 kB / 3.434 GB, free: 54.14 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.42/16.92, allocations: 2.695 GB / 6.129 GB, free: 53.34 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.214e-06/16.92, allocations: 0 / 6.129 GB, free: 53.34 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001323/16.92, allocations: 163.9 kB / 6.129 GB, free: 53.18 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.02482/16.94, allocations: 6.19 MB / 6.136 GB, free: 46.92 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 6.875e-05/16.94, allocations: 12.03 kB / 6.136 GB, free: 46.91 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/16.95, allocations: 1.494 MB / 6.137 GB, free: 45.4 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02031/16.97, allocations: 7.469 MB / 6.144 GB, free: 37.86 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/16.98, allocations: 152 kB / 6.144 GB, free: 37.71 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/16.98, allocations: 296 kB / 6.145 GB, free: 37.42 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01059/16.99, allocations: 5.317 MB / 6.15 GB, free: 32.1 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01107/17, allocations: 5.882 MB / 6.156 GB, free: 26.09 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/17, allocations: 11.84 kB / 6.156 GB, free: 26.07 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005344/17, allocations: 8 kB / 6.156 GB, free: 26.07 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001943/17, allocations: 225.4 kB / 6.156 GB, free: 25.84 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.04107/17.04, allocations: 27.24 MB / 6.183 GB, free: 13.07 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006965/17.05, allocations: 5.291 MB / 6.188 GB, free: 7.477 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003299/17.05, allocations: 2.381 MB / 6.19 GB, free: 5.094 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001205/17.05, allocations: 0.9194 MB / 6.191 GB, free: 3.988 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003445/17.06, allocations: 2.184 MB / 6.193 GB, free: 1.758 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 4.639e-06/17.06, allocations: 0 / 6.193 GB, free: 1.758 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 1.074/18.13, allocations: 10.94 MB / 6.204 GB, free: 171.2 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/18.13, allocations: 219.5 kB / 6.204 GB, free: 171 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01073/18.14, allocations: 4.152 MB / 6.208 GB, free: 170.7 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001226/18.14, allocations: 34.92 kB / 6.208 GB, free: 170.7 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.003781/18.15, allocations: 2.716 MB / 6.211 GB, free: 170 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002189/18.15, allocations: 1.094 MB / 6.212 GB, free: 169.4 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/18.15, allocations: 2.969 kB / 6.212 GB, free: 169.4 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0002732/18.15, allocations: 443.1 kB / 6.212 GB, free: 169.1 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003184/18.15, allocations: 1.653 MB / 6.214 GB, free: 169.1 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003669/18.16, allocations: 2.462 MB / 6.216 GB, free: 168.3 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004505/18.16, allocations: 2.208 MB / 6.218 GB, free: 168.3 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/18.16, allocations: 3.656 kB / 6.218 GB, free: 168.3 MB / 1.229 GB Notification: Performance of matching and sorting (n=419) (initialization): time 0.0118/18.17, allocations: 4.796 MB / 6.223 GB, free: 167.9 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001718/18.17, allocations: 6.363 MB / 6.229 GB, free: 161.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.913e-05/18.17, allocations: 13.66 kB / 6.229 GB, free: 161.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000713/18.17, allocations: 197.6 kB / 6.229 GB, free: 161.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004174/18.18, allocations: 0.7748 MB / 6.23 GB, free: 161.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/18.18, allocations: 3.372 MB / 6.233 GB, free: 158.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008241/18.19, allocations: 0.5392 MB / 6.234 GB, free: 158.7 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/18.19, allocations: 135.5 kB / 6.234 GB, free: 158.7 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/18.19, allocations: 5.281 kB / 6.234 GB, free: 158.7 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01278/18.2, allocations: 4.261 MB / 6.238 GB, free: 158.6 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.16e-05/18.2, allocations: 13.58 kB / 6.238 GB, free: 158.6 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008038/18.21, allocations: 197.7 kB / 6.239 GB, free: 158.6 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003712/18.21, allocations: 0.7664 MB / 6.239 GB, free: 158.6 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004496/18.21, allocations: 3.912 MB / 6.243 GB, free: 155.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007948/18.22, allocations: 0.5214 MB / 6.244 GB, free: 155.9 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001165/18.22, allocations: 141.1 kB / 6.244 GB, free: 155.9 MB / 1.229 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 (398): * Single equations (assignments): 394 * 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.002258/18.23, allocations: 219.6 kB / 6.244 GB, free: 155.8 MB / 1.229 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0118/18.24, allocations: 4.123 MB / 6.248 GB, free: 155.4 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002477/18.24, allocations: 497.7 kB / 6.248 GB, free: 155.1 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/18.25, allocations: 4.529 MB / 6.253 GB, free: 154.9 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.752e-05/18.25, allocations: 36.41 kB / 6.253 GB, free: 154.9 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.282e-05/18.25, allocations: 7.688 kB / 6.253 GB, free: 154.9 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007005/18.26, allocations: 3.801 MB / 6.257 GB, free: 154.6 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.03/18.29, allocations: 11.36 MB / 6.268 GB, free: 153.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/18.29, allocations: 6.375 kB / 6.268 GB, free: 153.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003733/18.29, allocations: 0.7389 MB / 6.268 GB, free: 153.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005372/18.29, allocations: 155.5 kB / 6.269 GB, free: 153.5 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006384/18.29, allocations: 50.86 kB / 6.269 GB, free: 153.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00283/18.3, allocations: 3.25 MB / 6.272 GB, free: 151.1 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.215e-05/18.3, allocations: 11.77 kB / 6.272 GB, free: 151.1 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/18.31, allocations: 7.37 MB / 6.279 GB, free: 149.8 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005241/18.32, allocations: 1.211 MB / 6.28 GB, free: 149.5 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002544/18.32, allocations: 27.3 kB / 6.28 GB, free: 149.5 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007371/18.33, allocations: 457.6 kB / 6.281 GB, free: 149.4 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007609/18.33, allocations: 197.4 kB / 6.281 GB, free: 149.4 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007051/18.33, allocations: 120.6 kB / 6.281 GB, free: 149.4 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01105/18.34, allocations: 3.224 MB / 6.284 GB, free: 149.3 MB / 1.229 GB Notification: Performance of sort global known variables: time 7.61e-07/18.34, allocations: 1.594 kB / 6.284 GB, free: 149.3 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.02386/18.36, allocations: 2.888 MB / 6.287 GB, free: 149.3 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.02416/18.39, allocations: 11.96 MB / 6.299 GB, free: 145.6 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01604/18.4, allocations: 6.911 MB / 6.305 GB, free: 145.1 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-05/18.4, allocations: 4.688 kB / 6.305 GB, free: 145.1 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.004762/18.41, allocations: 2.195 MB / 6.308 GB, free: 144.9 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01942/18.43, allocations: 2.904 MB / 6.31 GB, free: 144.9 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04855/18.47, allocations: 13.35 MB / 6.323 GB, free: 142.5 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01312/18.49, allocations: 4.68 MB / 6.328 GB, free: 141.7 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.02465/18.51, allocations: 4.419 MB / 6.332 GB, free: 141.6 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009423/18.52, allocations: 2.482 MB / 6.335 GB, free: 141.6 MB / 1.229 GB Notification: Performance of SimCode: time 3.376e-06/18.52, allocations: 0 / 6.335 GB, free: 141.6 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3355/18.86, allocations: 175.3 MB / 6.506 GB, free: 111.8 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/18.86, allocations: 202.9 kB / 6.506 GB, free: 111.6 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.094/27.95, allocations: 0 / 6.506 GB, free: 111.6 MB / 1.229 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat does not exist to compare? outputFormat=mat