Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",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.305/2.305, allocations: 390.5 MB / 398 MB, free: 11.02 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.001051/0.001051, allocations: 180.8 kB / 491.2 MB, free: 1.637 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.56/1.56, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009859/0.0009859, allocations: 99.52 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.38e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3329, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.276/1.609, allocations: 436.2 MB / 1.638 GB, free: 10.63 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/1.61, allocations: 89.14 kB / 1.638 GB, free: 10.59 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.995/4.605, allocations: 0.7788 GB / 2.417 GB, free: 215.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.854e-06/4.605, allocations: 3.188 kB / 2.417 GB, free: 215.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002499/4.605, allocations: 38.97 kB / 2.417 GB, free: 215.2 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: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.004721/4.61, allocations: 1.752 MB / 2.419 GB, free: 213.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/4.61, allocations: 13.92 kB / 2.419 GB, free: 213.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002605/4.612, allocations: 479.1 kB / 2.419 GB, free: 212.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004093/4.616, allocations: 1.726 MB / 2.421 GB, free: 211.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000375/4.617, allocations: 110.2 kB / 2.421 GB, free: 211.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003139/4.617, allocations: 60.86 kB / 2.421 GB, free: 211 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001883/4.619, allocations: 0.8436 MB / 2.422 GB, free: 210.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/4.621, allocations: 1.043 MB / 2.423 GB, free: 209.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/4.621, allocations: 4 kB / 2.423 GB, free: 209 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/4.621, allocations: 3.953 kB / 2.423 GB, free: 209 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/4.621, allocations: 42 kB / 2.423 GB, free: 209 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.008204/4.629, allocations: 6.901 MB / 2.43 GB, free: 201.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007812/4.63, allocations: 0.5431 MB / 2.43 GB, free: 201.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/4.631, allocations: 222.1 kB / 2.431 GB, free: 201 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008997/4.631, allocations: 1.581 MB / 2.432 GB, free: 199 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/4.632, allocations: 38.56 kB / 2.432 GB, free: 199 MB / 1.151 GB Notification: Performance of pre-optimization done (n=48): time 3.286e-06/4.632, allocations: 4 kB / 2.432 GB, free: 199 MB / 1.151 GB Notification: Performance of matching and sorting (n=48): time 0.002291/4.634, allocations: 0.7773 MB / 2.433 GB, free: 198.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.511e-05/4.634, allocations: 55.84 kB / 2.433 GB, free: 198.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/4.635, allocations: 0.9441 MB / 2.434 GB, free: 197.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.604e-05/4.635, allocations: 25.7 kB / 2.434 GB, free: 197.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004094/4.636, allocations: 0.694 MB / 2.435 GB, free: 196.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/4.636, allocations: 168.1 kB / 2.435 GB, free: 196.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/4.636, allocations: 0 / 2.435 GB, free: 196.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.515e-05/4.636, allocations: 329.9 kB / 2.435 GB, free: 196 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/4.636, allocations: 237.5 kB / 2.435 GB, free: 195.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004643/4.637, allocations: 0.528 MB / 2.436 GB, free: 195.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/4.638, allocations: 0.5132 MB / 2.436 GB, free: 194.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/4.638, allocations: 4 kB / 2.436 GB, free: 194.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002509/4.641, allocations: 1.06 MB / 2.437 GB, free: 193.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/4.641, allocations: 8 kB / 2.437 GB, free: 193.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/4.641, allocations: 6.344 kB / 2.437 GB, free: 193.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007291/4.642, allocations: 227.6 kB / 2.438 GB, free: 193.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007043/4.642, allocations: 182.7 kB / 2.438 GB, free: 193.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00062/4.643, allocations: 0.7538 MB / 2.439 GB, free: 192.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/4.644, allocations: 190 kB / 2.439 GB, free: 192.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/4.645, allocations: 43.97 kB / 2.439 GB, free: 192.1 MB / 1.151 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: chi_b.chi.QCon_flow:VARIABLE(unit = "W" ) "Actual heating heat flow rate added to fluid 1" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001992/4.645, allocations: 126.6 kB / 2.439 GB, free: 192 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001994/4.647, allocations: 0.7789 MB / 2.44 GB, free: 191.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/4.647, allocations: 118.5 kB / 2.44 GB, free: 191.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/4.649, allocations: 1.009 MB / 2.441 GB, free: 190.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/4.649, allocations: 14.09 kB / 2.441 GB, free: 190.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/4.649, allocations: 3.953 kB / 2.441 GB, free: 190.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/4.649, allocations: 3.984 kB / 2.441 GB, free: 190 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004688/4.654, allocations: 2.34 MB / 2.443 GB, free: 187.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/4.654, allocations: 3.938 kB / 2.443 GB, free: 187.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003377/4.654, allocations: 87.89 kB / 2.443 GB, free: 187.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006779/4.655, allocations: 218.8 kB / 2.443 GB, free: 187.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.166e-05/4.655, allocations: 12 kB / 2.443 GB, free: 187.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005569/4.655, allocations: 0.7417 MB / 2.444 GB, free: 186.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/4.655, allocations: 4.031 kB / 2.444 GB, free: 186.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/4.659, allocations: 1.266 MB / 2.445 GB, free: 185.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005584/4.659, allocations: 323.3 kB / 2.446 GB, free: 185 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/4.659, allocations: 4 kB / 2.446 GB, free: 185 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008583/4.66, allocations: 98.67 kB / 2.446 GB, free: 184.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/4.66, allocations: 42.59 kB / 2.446 GB, free: 184.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.171e-05/4.66, allocations: 23.98 kB / 2.446 GB, free: 184.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0009429/4.661, allocations: 0.714 MB / 2.447 GB, free: 184.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/4.661, allocations: 0 / 2.447 GB, free: 184.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00175/4.663, allocations: 0.5078 MB / 2.447 GB, free: 183.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.004553/4.668, allocations: 2.941 MB / 2.45 GB, free: 180.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00113/4.669, allocations: 0.6489 MB / 2.451 GB, free: 180.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/4.669, allocations: 0 / 2.451 GB, free: 180.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004871/4.669, allocations: 348.5 kB / 2.451 GB, free: 179.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/4.671, allocations: 429.3 kB / 2.451 GB, free: 179.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/4.675, allocations: 1.856 MB / 2.453 GB, free: 177.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/4.676, allocations: 1.189 MB / 2.454 GB, free: 176.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0009231/4.677, allocations: 229.5 kB / 2.454 GB, free: 176.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005905/4.677, allocations: 0.5227 MB / 2.455 GB, free: 175.6 MB / 1.151 GB Notification: Performance of SimCode: time 2.124e-06/4.677, allocations: 0 / 2.455 GB, free: 175.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06559/4.743, allocations: 35.5 MB / 2.49 GB, free: 140.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001525/4.743, allocations: 180.2 kB / 2.49 GB, free: 140.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.283/8.026, allocations: 4.031 kB / 2.49 GB, free: 140.7 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat does not exist to compare? outputFormat=mat