Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 223.2 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.4 MB / 0.6655 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003204, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7764/0.7767, allocations: 142.3 MB / 0.9538 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06327/0.84, allocations: 65.13 MB / 1.017 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.024/0.8641, allocations: 17.7 MB / 1.035 GB, free: 13.1 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.8667, allocations: 63.56 kB / 1.035 GB, free: 13.04 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002103/0.8689, allocations: 0.516 MB / 1.035 GB, free: 12.52 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007336/0.8762, allocations: 2.101 MB / 1.037 GB, free: 10.41 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003916/0.8802, allocations: 1.085 MB / 1.038 GB, free: 9.332 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.006531/0.8867, allocations: 4.377 MB / 1.043 GB, free: 4.945 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002216/0.889, allocations: 1.018 MB / 1.044 GB, free: 3.895 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00344/0.8924, allocations: 1.333 MB / 1.045 GB, free: 2.555 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001907/0.8944, allocations: 1.038 MB / 1.046 GB, free: 1.512 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.8945, allocations: 60 kB / 1.046 GB, free: 1.453 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002509/0.8971, allocations: 0.9082 MB / 1.047 GB, free: 0.543 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002829/0.8974, allocations: 246.8 kB / 1.047 GB, free: 308 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.00058/0.8979, allocations: 368.9 kB / 1.048 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002761/0.9007, allocations: 2.295 MB / 1.05 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.9007, allocations: 0 / 1.05 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.164e-06/0.9007, allocations: 0 / 1.05 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.33e-05/0.9008, allocations: 0 / 1.05 GB, free: 13.63 MB / 0.8106 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.003159/0.9039, allocations: 1.729 MB / 1.051 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.904, allocations: 8.031 kB / 1.051 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/0.9042, allocations: 160.4 kB / 1.052 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00208/0.9063, allocations: 0.4975 MB / 1.052 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/0.9089, allocations: 1.47 MB / 1.054 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003228/0.9093, allocations: 138 kB / 1.054 GB, free: 9.508 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.9094, allocations: 112 kB / 1.054 GB, free: 9.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002518/0.912, allocations: 1.309 MB / 1.055 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.912, allocations: 7.984 kB / 1.055 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.944e-05/0.9121, allocations: 43.95 kB / 1.055 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.9121, allocations: 28 kB / 1.055 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002578/0.9147, allocations: 1.155 MB / 1.056 GB, free: 6.766 MB / 0.8106 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.009466/0.9242, allocations: 7.168 MB / 1.063 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/0.9272, allocations: 0.8966 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005972/0.9278, allocations: 294 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/0.9291, allocations: 1.722 MB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.9292, allocations: 42.94 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.544e-06/0.9292, allocations: 0 / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.004595/0.9338, allocations: 1.448 MB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.9338, allocations: 75.72 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002732/0.9366, allocations: 1.513 MB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.81e-05/0.9367, allocations: 37.7 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006004/0.9373, allocations: 0.6613 MB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.9375, allocations: 173.6 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-05/0.9375, allocations: 20 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.9377, allocations: 330 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009951/0.9387, allocations: 385.8 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.9399, allocations: 0.6588 MB / 1.071 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.9409, allocations: 441.9 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.9409, allocations: 0 / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002966/0.9439, allocations: 1.216 MB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.9439, allocations: 8 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.9439, allocations: 12 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008773/0.9448, allocations: 229.1 kB / 1.073 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007412/0.9456, allocations: 195.7 kB / 1.073 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000887/0.9465, allocations: 0.728 MB / 1.074 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.9481, allocations: 266.7 kB / 1.074 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.9483, allocations: 35.98 kB / 1.074 GB, free: 3.133 MB / 0.8262 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0007015/0.949, allocations: 349.6 kB / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003261/0.9493, allocations: 154.2 kB / 1.075 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.9518, allocations: 1.172 MB / 1.076 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.9519, allocations: 11.98 kB / 1.076 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.9519, allocations: 4.094 kB / 1.076 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.9519, allocations: 7.922 kB / 1.076 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005354/0.9572, allocations: 2.581 MB / 1.078 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.9573, allocations: 8.031 kB / 1.078 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003682/0.9577, allocations: 91.86 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007903/0.9585, allocations: 224.6 kB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.962e-05/0.9585, allocations: 19.98 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.9598, allocations: 0.7981 MB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.9598, allocations: 12.03 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.9629, allocations: 1.277 MB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000735/0.9637, allocations: 378.8 kB / 1.081 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003171/0.964, allocations: 12 kB / 1.081 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000997/0.965, allocations: 107.8 kB / 1.081 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.834e-05/0.9651, allocations: 36.5 kB / 1.081 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.19e-05/0.9652, allocations: 27.98 kB / 1.081 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002034/0.9672, allocations: 1.07 MB / 1.082 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9673, allocations: 0 / 1.082 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001422/0.9687, allocations: 439.4 kB / 1.083 GB, free: 10.18 MB / 0.8419 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 41 * 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 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.004483/0.9732, allocations: 2.17 MB / 1.085 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002204/0.9754, allocations: 0.872 MB / 1.086 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.9754, allocations: 3.938 kB / 1.086 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.9767, allocations: 479.5 kB / 1.086 GB, free: 6.637 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00384/0.9806, allocations: 0.6923 MB / 1.087 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02665/1.007, allocations: 8.964 MB / 1.096 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008792/1.008, allocations: 1.172 MB / 1.097 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001325/1.009, allocations: 267.9 kB / 1.097 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008728/1.01, allocations: 0.5383 MB / 1.098 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of SimCode: time 9.72e-07/1.01, allocations: 0 / 1.098 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07266/1.083, allocations: 42.94 MB / 1.14 GB, free: 160 kB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/1.083, allocations: 253.9 kB / 1.14 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.839/3.922, allocations: 0 / 1.14 GB, free: 15.82 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat does not exist to compare? outputFormat=mat