Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.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.Validation.HeaterCooler_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",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.398/2.398, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001863/0.001862, allocations: 181.1 kB / 498.1 MB, free: 5.734 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.51/1.51, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.001055/0.001055, allocations: 88.27 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003858, allocations: 10.47 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2856, allocations: 142.4 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.283/4.569, allocations: 1.931 GB / 3.154 GB, free: 80.88 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/4.569, allocations: 92.84 kB / 3.154 GB, free: 80.79 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 4.434/9.003, allocations: 1.051 GB / 4.206 GB, free: 233.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.473e-06/9.003, allocations: 0 / 4.206 GB, free: 233.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003255/9.004, allocations: 49.3 kB / 4.206 GB, free: 233.3 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.008145/9.012, allocations: 2.374 MB / 4.208 GB, free: 232.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/9.012, allocations: 13.97 kB / 4.208 GB, free: 232.3 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007375/9.013, allocations: 177 kB / 4.208 GB, free: 232.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00464/9.017, allocations: 0.6256 MB / 4.209 GB, free: 232.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005651/9.023, allocations: 1.451 MB / 4.21 GB, free: 231.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004693/9.024, allocations: 159.3 kB / 4.211 GB, free: 231.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006313/9.024, allocations: 119.2 kB / 4.211 GB, free: 231.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004494/9.029, allocations: 1.461 MB / 4.212 GB, free: 231.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.268e-05/9.029, allocations: 3.844 kB / 4.212 GB, free: 231.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002739/9.029, allocations: 48.66 kB / 4.212 GB, free: 231.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.655e-05/9.029, allocations: 47.41 kB / 4.212 GB, free: 231.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003316/9.032, allocations: 1.248 MB / 4.213 GB, free: 231.6 MB / 1.167 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.01151/9.044, allocations: 5.898 MB / 4.219 GB, free: 229.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/9.046, allocations: 1.163 MB / 4.22 GB, free: 229 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005526/9.047, allocations: 315.7 kB / 4.221 GB, free: 228.8 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/9.048, allocations: 0.6373 MB / 4.221 GB, free: 228.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=87): time 3.817e-06/9.048, allocations: 0 / 4.221 GB, free: 228.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=94): time 0.01187/9.06, allocations: 4.361 MB / 4.225 GB, free: 227.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/9.06, allocations: 201.7 kB / 4.226 GB, free: 227.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/9.063, allocations: 1.161 MB / 4.227 GB, free: 227.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001373/9.063, allocations: 47.33 kB / 4.227 GB, free: 227.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008425/9.064, allocations: 0.722 MB / 4.228 GB, free: 227.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/9.064, allocations: 324 kB / 4.228 GB, free: 226.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/9.064, allocations: 17.88 kB / 4.228 GB, free: 226.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001164/9.064, allocations: 338.1 kB / 4.228 GB, free: 226.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009601/9.065, allocations: 481.9 kB / 4.229 GB, free: 226.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/9.066, allocations: 0.6929 MB / 4.229 GB, free: 226.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/9.078, allocations: 2.524 MB / 4.232 GB, free: 226.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/9.078, allocations: 0 / 4.232 GB, free: 226.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004738/9.083, allocations: 1.791 MB / 4.234 GB, free: 226 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003827/9.083, allocations: 1.303 MB / 4.235 GB, free: 224.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/9.083, allocations: 12.7 kB / 4.235 GB, free: 224.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/9.084, allocations: 433.1 kB / 4.235 GB, free: 224.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/9.085, allocations: 175.1 kB / 4.235 GB, free: 224.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007614/9.093, allocations: 6.989 MB / 4.242 GB, free: 220.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002123/9.095, allocations: 151.6 kB / 4.242 GB, free: 220.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002114/9.095, allocations: 43.05 kB / 4.242 GB, free: 220.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/9.095, allocations: 6.688 kB / 4.242 GB, free: 220.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004262/9.099, allocations: 1.631 MB / 4.244 GB, free: 220.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/9.099, allocations: 3.156 kB / 4.244 GB, free: 220.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/9.101, allocations: 432.7 kB / 4.244 GB, free: 220 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007976/9.101, allocations: 183.7 kB / 4.245 GB, free: 220 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008767/9.11, allocations: 8.013 MB / 4.252 GB, free: 214.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/9.112, allocations: 146.8 kB / 4.253 GB, free: 214.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/9.113, allocations: 42.28 kB / 4.253 GB, free: 214.7 MB / 1.167 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heaDyn.vol.dynBal.medium.p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 11,1 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001447/9.114, allocations: 0.4999 MB / 4.253 GB, free: 214.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005943/9.115, allocations: 168.4 kB / 4.253 GB, free: 214.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004669/9.119, allocations: 1.659 MB / 4.255 GB, free: 214.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/9.119, allocations: 10.72 kB / 4.255 GB, free: 214.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/9.119, allocations: 2.875 kB / 4.255 GB, free: 214.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003653/9.123, allocations: 1.514 MB / 4.256 GB, free: 214 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008959/9.132, allocations: 3.518 MB / 4.26 GB, free: 213.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/9.132, allocations: 3.844 kB / 4.26 GB, free: 213.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009275/9.133, allocations: 185 kB / 4.26 GB, free: 213.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006893/9.134, allocations: 236.1 kB / 4.26 GB, free: 213.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/9.134, allocations: 37.91 kB / 4.26 GB, free: 213.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003633/9.137, allocations: 2.713 MB / 4.263 GB, free: 211.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/9.138, allocations: 3.969 kB / 4.263 GB, free: 211.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005706/9.143, allocations: 2.69 MB / 4.266 GB, free: 210.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/9.145, allocations: 369 kB / 4.266 GB, free: 210.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005675/9.145, allocations: 24.91 kB / 4.266 GB, free: 210.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001988/9.147, allocations: 141.9 kB / 4.266 GB, free: 210.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/9.147, allocations: 68.31 kB / 4.266 GB, free: 210.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/9.147, allocations: 40.25 kB / 4.266 GB, free: 210.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002162/9.15, allocations: 0.9176 MB / 4.267 GB, free: 210.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.7e-07/9.15, allocations: 0 / 4.267 GB, free: 210.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005191/9.155, allocations: 1.02 MB / 4.268 GB, free: 210.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.Xi[1],heaDyn.vol.dynBal.medium.T,senTem2.T,con2.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 (81): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01052/9.165, allocations: 6.519 MB / 4.274 GB, free: 207.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005481/9.171, allocations: 2.92 MB / 4.277 GB, free: 206.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/9.171, allocations: 3.656 kB / 4.277 GB, free: 206.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001428/9.172, allocations: 0.7963 MB / 4.278 GB, free: 206.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004943/9.177, allocations: 0.8605 MB / 4.279 GB, free: 206.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02634/9.204, allocations: 12.76 MB / 4.291 GB, free: 200.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/9.205, allocations: 1.38 MB / 4.293 GB, free: 200.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002172/9.207, allocations: 348.5 kB / 4.293 GB, free: 200.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/9.208, allocations: 0.64 MB / 4.294 GB, free: 200.1 MB / 1.167 GB Notification: Performance of SimCode: time 1.483e-06/9.209, allocations: 0 / 4.294 GB, free: 200.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1416/9.35, allocations: 83.54 MB / 4.375 GB, free: 172.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/9.35, allocations: 255.9 kB / 4.375 GB, free: 172.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.893/14.24, allocations: 0 / 4.375 GB, free: 172.2 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat does not exist to compare? outputFormat=mat