Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.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.WetCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow",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.204/2.204, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001301/0.001301, allocations: 188.8 kB / 487.4 MB, free: 5.031 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.594/1.594, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 91.98 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.208e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3054, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.716/6.022, allocations: 2.215 GB / 3.421 GB, free: 83.77 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/6.022, allocations: 97.67 kB / 3.421 GB, free: 83.72 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.307/15.33, allocations: 2.441 GB / 5.863 GB, free: 163.4 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.374e-06/15.33, allocations: 3.469 kB / 5.863 GB, free: 163.4 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001238/15.33, allocations: 155.9 kB / 5.863 GB, free: 163.4 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1189 * Number of variables: 1189 Notification: Performance of Generate backend data structure: time 0.02423/15.35, allocations: 5.763 MB / 5.869 GB, free: 161.5 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/15.35, allocations: 7.719 kB / 5.869 GB, free: 161.5 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009893/15.36, allocations: 1.403 MB / 5.87 GB, free: 161.2 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01692/15.38, allocations: 7.16 MB / 5.877 GB, free: 160.3 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/15.38, allocations: 145.5 kB / 5.877 GB, free: 160.3 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001321/15.38, allocations: 278.9 kB / 5.877 GB, free: 160.3 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009361/15.39, allocations: 5.195 MB / 5.882 GB, free: 160.3 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00936/15.4, allocations: 5.708 MB / 5.888 GB, free: 159.9 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/15.4, allocations: 7.75 kB / 5.888 GB, free: 159.9 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004617/15.4, allocations: 10.55 kB / 5.888 GB, free: 159.9 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/15.4, allocations: 214.8 kB / 5.888 GB, free: 159.9 MB / 1.198 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.0354/15.44, allocations: 25.83 MB / 5.913 GB, free: 150.5 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/15.44, allocations: 4.899 MB / 5.918 GB, free: 149 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002538/15.45, allocations: 2.318 MB / 5.921 GB, free: 148.9 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001004/15.45, allocations: 1.01 MB / 5.922 GB, free: 147.9 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002724/15.45, allocations: 2.168 MB / 5.924 GB, free: 147.7 MB / 1.198 GB Notification: Performance of pre-optimization done (n=312): time 5.6e-06/15.45, allocations: 5.859 kB / 5.924 GB, free: 147.7 MB / 1.198 GB Notification: Performance of matching and sorting (n=316): time 0.02508/15.47, allocations: 10.69 MB / 5.934 GB, free: 145 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/15.47, allocations: 199.1 kB / 5.934 GB, free: 144.8 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005797/15.48, allocations: 3.874 MB / 5.938 GB, free: 144.5 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0007037/15.48, allocations: 29.67 kB / 5.938 GB, free: 144.5 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.002539/15.48, allocations: 2.486 MB / 5.94 GB, free: 143.6 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001379/15.48, allocations: 1.04 MB / 5.942 GB, free: 142.9 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/15.48, allocations: 3.031 kB / 5.942 GB, free: 142.9 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001691/15.49, allocations: 437.1 kB / 5.942 GB, free: 142.6 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/15.49, allocations: 1.609 MB / 5.944 GB, free: 142.6 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002305/15.49, allocations: 2.317 MB / 5.946 GB, free: 141.9 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003503/15.49, allocations: 2.192 MB / 5.948 GB, free: 141.8 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/15.49, allocations: 6.781 kB / 5.948 GB, free: 141.8 MB / 1.198 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.008323/15.5, allocations: 4.62 MB / 5.952 GB, free: 141.5 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001634/15.5, allocations: 5.839 MB / 5.958 GB, free: 135.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.601e-05/15.5, allocations: 10.69 kB / 5.958 GB, free: 135.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004611/15.5, allocations: 129.8 kB / 5.958 GB, free: 135.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/15.51, allocations: 0.7164 MB / 5.959 GB, free: 135.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/15.51, allocations: 2.687 MB / 5.962 GB, free: 133.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00582/15.51, allocations: 0.49 MB / 5.962 GB, free: 133.6 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003527/15.51, allocations: 133.7 kB / 5.962 GB, free: 133.6 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 9.659e-06/15.51, allocations: 3.469 kB / 5.962 GB, free: 133.6 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006523/15.52, allocations: 4.176 MB / 5.966 GB, free: 133.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/15.52, allocations: 11.22 kB / 5.966 GB, free: 133.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/15.52, allocations: 126.7 kB / 5.966 GB, free: 133.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/15.52, allocations: 0.7122 MB / 5.967 GB, free: 133.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/15.53, allocations: 2.065 MB / 5.969 GB, free: 132.2 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005526/15.53, allocations: 491.5 kB / 5.97 GB, free: 132.2 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000379/15.53, allocations: 129.2 kB / 5.97 GB, free: 132.2 MB / 1.198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008999/15.53, allocations: 244.7 kB / 5.97 GB, free: 132 MB / 1.198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00764/15.54, allocations: 4.033 MB / 5.974 GB, free: 131.7 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001516/15.54, allocations: 456.3 kB / 5.974 GB, free: 131.4 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008444/15.55, allocations: 4.42 MB / 5.979 GB, free: 131.2 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.852e-05/15.55, allocations: 37.62 kB / 5.979 GB, free: 131.2 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/15.55, allocations: 3.25 kB / 5.979 GB, free: 131.2 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005649/15.56, allocations: 3.752 MB / 5.982 GB, free: 131 MB / 1.198 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.0227/15.58, allocations: 11.13 MB / 5.993 GB, free: 129.7 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/15.58, allocations: 3.719 kB / 5.993 GB, free: 129.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003142/15.58, allocations: 0.6952 MB / 5.994 GB, free: 129.7 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003549/15.58, allocations: 113 kB / 5.994 GB, free: 129.7 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003641/15.58, allocations: 48.55 kB / 5.994 GB, free: 129.7 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/15.59, allocations: 2.656 MB / 5.997 GB, free: 127.8 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/15.59, allocations: 7.469 kB / 5.997 GB, free: 127.8 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/15.6, allocations: 7.168 MB / 6.004 GB, free: 125.5 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003739/15.6, allocations: 1.141 MB / 6.005 GB, free: 124.9 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001607/15.6, allocations: 32 kB / 6.005 GB, free: 124.9 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00512/15.61, allocations: 439.8 kB / 6.005 GB, free: 124.8 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003987/15.61, allocations: 195.5 kB / 6.005 GB, free: 124.8 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003779/15.61, allocations: 117.9 kB / 6.005 GB, free: 124.8 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.006417/15.61, allocations: 3.013 MB / 6.008 GB, free: 123.6 MB / 1.198 GB Notification: Performance of sort global known variables: time 3.41e-07/15.61, allocations: 0 / 6.008 GB, free: 123.6 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01398/15.63, allocations: 2.724 MB / 6.011 GB, free: 123.4 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 18 (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,senRelHum.phi) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (305): * Single equations (assignments): 297 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01902/15.65, allocations: 11.46 MB / 6.022 GB, free: 117.9 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01099/15.66, allocations: 6.712 MB / 6.029 GB, free: 115.2 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/15.66, allocations: 2.875 kB / 6.029 GB, free: 115.2 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.002949/15.66, allocations: 2.215 MB / 6.031 GB, free: 114.3 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0149/15.68, allocations: 2.734 MB / 6.034 GB, free: 113.9 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03295/15.71, allocations: 12.91 MB / 6.046 GB, free: 109.6 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005781/15.71, allocations: 4.495 MB / 6.051 GB, free: 108 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.0141/15.73, allocations: 4.373 MB / 6.055 GB, free: 108 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004943/15.73, allocations: 2.283 MB / 6.057 GB, free: 106.1 MB / 1.198 GB Notification: Performance of SimCode: time 1.062e-06/15.73, allocations: 0 / 6.057 GB, free: 106.1 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.019/16.75, allocations: 164 MB / 6.217 GB, free: 174.4 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001416/16.75, allocations: 182.6 kB / 6.218 GB, free: 174.2 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.064/24.82, allocations: 2.844 kB / 6.218 GB, free: 174.2 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat does not exist to compare? outputFormat=mat