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.375/2.375, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001107/0.001107, allocations: 176.9 kB / 492.3 MB, free: 0.6133 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.572/1.572, allocations: 221.3 MB / 0.7871 GB, free: 12.87 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.000888/0.000888, allocations: 98.23 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.361e-05/3.364e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3317, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.01/6.342, allocations: 2.216 GB / 3.428 GB, free: 72.49 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/6.342, allocations: 100.5 kB / 3.429 GB, free: 72.44 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.93/16.27, allocations: 2.463 GB / 5.891 GB, free: 158.5 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.823e-06/16.27, allocations: 0 / 5.891 GB, free: 158.5 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001069/16.27, allocations: 146.3 kB / 5.892 GB, free: 158.5 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.02621/16.3, allocations: 5.768 MB / 5.897 GB, free: 156.5 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 6.508e-05/16.3, allocations: 11.69 kB / 5.897 GB, free: 156.5 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00321/16.3, allocations: 0.6365 MB / 5.898 GB, free: 156.4 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01044/16.31, allocations: 1.408 MB / 5.899 GB, free: 156.1 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02107/16.33, allocations: 7.157 MB / 5.906 GB, free: 155.2 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007217/16.33, allocations: 353 kB / 5.907 GB, free: 155.2 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003396/16.34, allocations: 469.8 kB / 5.907 GB, free: 155.2 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02229/16.36, allocations: 6.372 MB / 5.913 GB, free: 154.8 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003678/16.36, allocations: 10.84 kB / 5.913 GB, free: 154.8 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002172/16.36, allocations: 186.1 kB / 5.913 GB, free: 154.8 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002972/16.36, allocations: 214.5 kB / 5.914 GB, free: 154.8 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01589/16.38, allocations: 5.566 MB / 5.919 GB, free: 154.7 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.05679/16.44, allocations: 26.73 MB / 5.945 GB, free: 145.3 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00679/16.44, allocations: 3.987 MB / 5.949 GB, free: 144.8 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00402/16.45, allocations: 2.453 MB / 5.951 GB, free: 144.8 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001241/16.45, allocations: 1.013 MB / 5.952 GB, free: 143.7 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004259/16.45, allocations: 2.182 MB / 5.955 GB, free: 143.6 MB / 1.198 GB Notification: Performance of pre-optimization done (n=313): time 5.5e-06/16.45, allocations: 0 / 5.955 GB, free: 143.6 MB / 1.198 GB Notification: Performance of matching and sorting (n=317): time 0.02344/16.48, allocations: 9.577 MB / 5.964 GB, free: 141.8 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/16.48, allocations: 140.2 kB / 5.964 GB, free: 141.7 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/16.49, allocations: 4.247 MB / 5.968 GB, free: 141.4 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0008254/16.49, allocations: 90.36 kB / 5.968 GB, free: 141.4 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.003534/16.49, allocations: 2.495 MB / 5.971 GB, free: 140.5 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001819/16.49, allocations: 1.085 MB / 5.972 GB, free: 139.8 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005779/16.49, allocations: 60.41 kB / 5.972 GB, free: 139.8 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0003474/16.49, allocations: 437.3 kB / 5.972 GB, free: 139.5 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003122/16.5, allocations: 1.718 MB / 5.974 GB, free: 139.5 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003825/16.5, allocations: 2.44 MB / 5.976 GB, free: 138.8 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003742/16.5, allocations: 2.239 MB / 5.978 GB, free: 138.7 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.89e-05/16.5, allocations: 6.906 kB / 5.979 GB, free: 138.7 MB / 1.198 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.009768/16.51, allocations: 4.914 MB / 5.983 GB, free: 138.3 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001391/16.52, allocations: 5.685 MB / 5.989 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.759e-05/16.52, allocations: 12.34 kB / 5.989 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004891/16.52, allocations: 127 kB / 5.989 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003227/16.52, allocations: 0.716 MB / 5.99 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/16.52, allocations: 2.752 MB / 5.992 GB, free: 130.4 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006655/16.53, allocations: 0.5565 MB / 5.993 GB, free: 130.4 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006225/16.53, allocations: 127.3 kB / 5.993 GB, free: 130.4 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/16.53, allocations: 10.19 kB / 5.993 GB, free: 130.4 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008392/16.54, allocations: 4.528 MB / 5.997 GB, free: 129.1 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-05/16.54, allocations: 12.84 kB / 5.997 GB, free: 129.1 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/16.54, allocations: 124.4 kB / 5.998 GB, free: 129 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003007/16.54, allocations: 0.7074 MB / 5.998 GB, free: 129 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/16.54, allocations: 2.141 MB / 6 GB, free: 127.3 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006604/16.55, allocations: 0.5456 MB / 6.001 GB, free: 127.2 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005792/16.55, allocations: 126.4 kB / 6.001 GB, free: 127.2 MB / 1.198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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.001348/16.55, allocations: 371.6 kB / 6.001 GB, free: 126.9 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001987/16.55, allocations: 469.8 kB / 6.002 GB, free: 126.7 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/16.56, allocations: 4.78 MB / 6.007 GB, free: 124.8 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.949e-05/16.56, allocations: 30.41 kB / 6.007 GB, free: 124.8 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/16.56, allocations: 3.797 kB / 6.007 GB, free: 124.8 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006243/16.57, allocations: 4.011 MB / 6.01 GB, free: 123.3 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.03026/16.6, allocations: 11.95 MB / 6.022 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-05/16.6, allocations: 7.188 kB / 6.022 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003543/16.6, allocations: 0.6991 MB / 6.023 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004199/16.6, allocations: 109.7 kB / 6.023 GB, free: 118.1 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006341/16.61, allocations: 96.17 kB / 6.023 GB, free: 118.1 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/16.61, allocations: 2.724 MB / 6.026 GB, free: 115.8 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/16.61, allocations: 7.5 kB / 6.026 GB, free: 115.8 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/16.62, allocations: 7.566 MB / 6.033 GB, free: 112.2 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004949/16.63, allocations: 1.185 MB / 6.034 GB, free: 111.5 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002067/16.63, allocations: 83.27 kB / 6.034 GB, free: 111.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005962/16.63, allocations: 489.3 kB / 6.035 GB, free: 111.4 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005328/16.63, allocations: 196.7 kB / 6.035 GB, free: 111.4 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004721/16.63, allocations: 122 kB / 6.035 GB, free: 111.4 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.008462/16.64, allocations: 3.342 MB / 6.038 GB, free: 110.2 MB / 1.198 GB Notification: Performance of sort global known variables: time 6.91e-07/16.64, allocations: 3.5 kB / 6.038 GB, free: 110.2 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01663/16.66, allocations: 2.934 MB / 6.041 GB, free: 109.8 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (306): * Single equations (assignments): 298 * 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.01955/16.68, allocations: 11.68 MB / 6.053 GB, free: 104 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01415/16.69, allocations: 7.147 MB / 6.06 GB, free: 98.88 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/16.69, allocations: 0 / 6.06 GB, free: 98.88 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.004233/16.7, allocations: 2.346 MB / 6.062 GB, free: 96.79 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01757/16.72, allocations: 2.907 MB / 6.065 GB, free: 94.86 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04223/16.76, allocations: 13.28 MB / 6.078 GB, free: 84.08 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006965/16.76, allocations: 4.501 MB / 6.082 GB, free: 80.7 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.01412/16.78, allocations: 4.407 MB / 6.086 GB, free: 78.23 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004527/16.78, allocations: 2.288 MB / 6.089 GB, free: 76.12 MB / 1.198 GB Notification: Performance of SimCode: time 1.142e-06/16.78, allocations: 0 / 6.089 GB, free: 76.12 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.161/17.94, allocations: 200.3 MB / 6.284 GB, free: 165.7 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/17.94, allocations: 236.9 kB / 6.284 GB, free: 165.4 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.677/27.62, allocations: 2.969 kB / 6.284 GB, free: 165.4 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