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.409/2.409, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001081/0.001081, allocations: 180.8 kB / 487.4 MB, free: 5.039 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.776/1.776, allocations: 221.5 MB / 0.7824 GB, free: 0.957 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.001067/0.001067, allocations: 99.84 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.227e-05, allocations: 8 kB / 1.067 GB, free: 185.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3383, allocations: 142.4 MB / 1.206 GB, free: 43.83 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.948/6.286, allocations: 1.931 GB / 3.137 GB, free: 420.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/6.286, allocations: 93.72 kB / 3.137 GB, free: 420.2 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.454/9.741, allocations: 1.039 GB / 4.176 GB, free: 214.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.804e-06/9.741, allocations: 0 / 4.176 GB, free: 214.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001552/9.741, allocations: 47.44 kB / 4.176 GB, free: 214.1 MB / 1.151 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.004399/9.745, allocations: 2.068 MB / 4.178 GB, free: 212.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/9.745, allocations: 10.31 kB / 4.178 GB, free: 212.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003892/9.749, allocations: 0.6218 MB / 4.179 GB, free: 212.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002882/9.752, allocations: 1.44 MB / 4.18 GB, free: 211.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/9.752, allocations: 112.7 kB / 4.18 GB, free: 211.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/9.753, allocations: 69.25 kB / 4.18 GB, free: 211.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001697/9.754, allocations: 0.9891 MB / 4.181 GB, free: 211 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/9.756, allocations: 1.191 MB / 4.183 GB, free: 210.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/9.756, allocations: 0 / 4.183 GB, free: 210.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/9.756, allocations: 0 / 4.183 GB, free: 210.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/9.756, allocations: 46.86 kB / 4.183 GB, free: 210.2 MB / 1.151 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.007508/9.764, allocations: 5.612 MB / 4.188 GB, free: 205.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/9.765, allocations: 0.947 MB / 4.189 GB, free: 205.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000543/9.766, allocations: 461.8 kB / 4.19 GB, free: 205 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004897/9.766, allocations: 314.7 kB / 4.19 GB, free: 204.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006612/9.767, allocations: 0.5044 MB / 4.19 GB, free: 204.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 4.578e-06/9.767, allocations: 10.59 kB / 4.19 GB, free: 204.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.007397/9.774, allocations: 2.931 MB / 4.193 GB, free: 202.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/9.774, allocations: 193.6 kB / 4.193 GB, free: 202.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/9.776, allocations: 0.9157 MB / 4.194 GB, free: 202 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001606/9.776, allocations: 33.14 kB / 4.194 GB, free: 201.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008172/9.777, allocations: 0.7228 MB / 4.195 GB, free: 201.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/9.777, allocations: 308.1 kB / 4.195 GB, free: 201.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/9.777, allocations: 0 / 4.195 GB, free: 201.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001289/9.778, allocations: 341.6 kB / 4.196 GB, free: 200.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005661/9.778, allocations: 364.4 kB / 4.196 GB, free: 200.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006554/9.779, allocations: 0.5711 MB / 4.197 GB, free: 200.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/9.783, allocations: 1.325 MB / 4.198 GB, free: 199.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/9.783, allocations: 3.844 kB / 4.198 GB, free: 199.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004137/9.787, allocations: 1.585 MB / 4.199 GB, free: 198.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003392/9.787, allocations: 1.291 MB / 4.201 GB, free: 197.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/9.787, allocations: 3.812 kB / 4.201 GB, free: 197.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009245/9.788, allocations: 401.6 kB / 4.201 GB, free: 197.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007178/9.789, allocations: 174.3 kB / 4.201 GB, free: 197.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005794/9.795, allocations: 6.329 MB / 4.207 GB, free: 191.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/9.797, allocations: 122.9 kB / 4.207 GB, free: 191.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/9.797, allocations: 41.52 kB / 4.208 GB, free: 191.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/9.797, allocations: 3.719 kB / 4.208 GB, free: 191.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003289/9.8, allocations: 1.402 MB / 4.209 GB, free: 190.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/9.8, allocations: 0 / 4.209 GB, free: 190.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008577/9.801, allocations: 389.4 kB / 4.209 GB, free: 190.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007105/9.802, allocations: 179 kB / 4.209 GB, free: 190.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006451/9.808, allocations: 7.271 MB / 4.217 GB, free: 182.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/9.81, allocations: 118.1 kB / 4.217 GB, free: 182.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/9.81, allocations: 39.98 kB / 4.217 GB, free: 182.2 MB / 1.151 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real 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 () * 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.0004722/9.81, allocations: 168.5 kB / 4.217 GB, free: 182 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003319/9.814, allocations: 1.311 MB / 4.218 GB, free: 180.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004139/9.814, allocations: 150.2 kB / 4.218 GB, free: 180.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/9.817, allocations: 1.386 MB / 4.22 GB, free: 179.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/9.817, allocations: 8 kB / 4.22 GB, free: 179.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/9.817, allocations: 0 / 4.22 GB, free: 179.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00259/9.82, allocations: 1.266 MB / 4.221 GB, free: 177.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006185/9.826, allocations: 3.117 MB / 4.224 GB, free: 174.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/9.826, allocations: 4 kB / 4.224 GB, free: 174.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008474/9.827, allocations: 186.2 kB / 4.224 GB, free: 174.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004064/9.828, allocations: 196.7 kB / 4.224 GB, free: 174.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.763e-05/9.828, allocations: 22.8 kB / 4.224 GB, free: 174.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/9.83, allocations: 2.423 MB / 4.227 GB, free: 171.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/9.83, allocations: 4 kB / 4.227 GB, free: 171.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003762/9.834, allocations: 2.318 MB / 4.229 GB, free: 169.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008612/9.835, allocations: 353.6 kB / 4.229 GB, free: 168.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003856/9.835, allocations: 14.11 kB / 4.229 GB, free: 168.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/9.837, allocations: 124.7 kB / 4.229 GB, free: 168.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/9.837, allocations: 71.78 kB / 4.229 GB, free: 168.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.096e-05/9.837, allocations: 35.98 kB / 4.23 GB, free: 168.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001177/9.838, allocations: 0.6992 MB / 4.23 GB, free: 168 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.5e-07/9.838, allocations: 0 / 4.23 GB, free: 168 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004503/9.843, allocations: 0.9752 MB / 4.231 GB, free: 167 MB / 1.151 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.X[2],heaDyn.vol.dynBal.medium.dT,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) * 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.00742/9.85, allocations: 6.404 MB / 4.237 GB, free: 160.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003217/9.853, allocations: 2.52 MB / 4.24 GB, free: 158.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/9.853, allocations: 0 / 4.24 GB, free: 158.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008004/9.854, allocations: 0.6795 MB / 4.241 GB, free: 157.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003916/9.858, allocations: 0.7097 MB / 4.241 GB, free: 156.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007484/9.865, allocations: 2.873 MB / 4.244 GB, free: 153.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/9.867, allocations: 1.393 MB / 4.245 GB, free: 152.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002235/9.869, allocations: 422.1 kB / 4.246 GB, free: 152.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007366/9.87, allocations: 0.6008 MB / 4.246 GB, free: 151.5 MB / 1.151 GB Notification: Performance of SimCode: time 9.72e-07/9.87, allocations: 0 / 4.246 GB, free: 151.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/9.971, allocations: 62.96 MB / 4.308 GB, free: 89.35 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/9.971, allocations: 172.9 kB / 4.308 GB, free: 89.16 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.4/14.37, allocations: 4.031 kB / 4.308 GB, free: 89.15 MB / 1.151 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