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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001495/0.001495, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001717/0.001717, allocations: 191 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 239.9 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.276/2.276, allocations: 390.3 MB / 0.6644 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 67.89 kB / 0.8122 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5393/0.5407, allocations: 140.4 MB / 0.9492 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05912/0.5998, allocations: 69.91 MB / 1.018 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02042/0.6203, allocations: 18.79 MB / 1.036 GB, free: 9.113 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.6224, allocations: 63.62 kB / 1.036 GB, free: 9.051 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.6245, allocations: 0.7074 MB / 1.037 GB, free: 8.34 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005973/0.6305, allocations: 2.664 MB / 1.039 GB, free: 5.668 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003114/0.6336, allocations: 1.509 MB / 1.041 GB, free: 4.164 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.005023/0.6387, allocations: 4.054 MB / 1.045 GB, free: 104 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001859/0.6405, allocations: 1.449 MB / 1.046 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.6437, allocations: 1.775 MB / 1.048 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00161/0.6454, allocations: 1.221 MB / 1.049 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002945/0.6457, allocations: 176 kB / 1.049 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002224/0.6479, allocations: 1.427 MB / 1.051 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.6483, allocations: 402.5 kB / 1.051 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0009512/0.6492, allocations: 0.9177 MB / 1.052 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003174/0.6524, allocations: 3.085 MB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.6524, allocations: 4 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.635e-06/0.6524, allocations: 0 / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.705e-05/0.6525, allocations: 7.938 kB / 1.055 GB, free: 5.586 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.003313/0.6558, allocations: 2.027 MB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.6558, allocations: 8.031 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.656, allocations: 156.6 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002105/0.6581, allocations: 449.7 kB / 1.057 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002305/0.6605, allocations: 1.504 MB / 1.059 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003436/0.6608, allocations: 138 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.6609, allocations: 104 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.6633, allocations: 1.289 MB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.6633, allocations: 3.938 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.491e-05/0.6634, allocations: 51.88 kB / 1.06 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.6634, allocations: 28 kB / 1.06 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.6658, allocations: 1.105 MB / 1.062 GB, free: 14.52 MB / 0.8262 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.007163/0.673, allocations: 7.145 MB / 1.069 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002938/0.676, allocations: 0.8061 MB / 1.069 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005469/0.6765, allocations: 282 kB / 1.07 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/0.6776, allocations: 1.722 MB / 1.071 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.6776, allocations: 42.94 kB / 1.071 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 1.603e-06/0.6776, allocations: 0 / 1.071 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.0043/0.6819, allocations: 1.327 MB / 1.073 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.682, allocations: 63.84 kB / 1.073 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.6839, allocations: 1.521 MB / 1.074 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.684, allocations: 33.7 kB / 1.074 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004931/0.6845, allocations: 0.6692 MB / 1.075 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.6846, allocations: 169.6 kB / 1.075 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.6849, allocations: 162.5 kB / 1.075 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.685, allocations: 333.9 kB / 1.075 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008941/0.6859, allocations: 365.8 kB / 1.076 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.687, allocations: 0.6354 MB / 1.076 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.6887, allocations: 0.8483 MB / 1.077 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.6887, allocations: 7.938 kB / 1.077 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004079/0.6928, allocations: 1.337 MB / 1.079 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.6928, allocations: 8 kB / 1.079 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6929, allocations: 8 kB / 1.079 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000821/0.6937, allocations: 216.8 kB / 1.079 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/0.6945, allocations: 179.7 kB / 1.079 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008125/0.6953, allocations: 0.7201 MB / 1.08 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.6968, allocations: 242.6 kB / 1.08 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-05/0.6969, allocations: 43.98 kB / 1.08 GB, free: 10.44 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004711/0.6974, allocations: 345.6 kB / 1.08 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.6976, allocations: 150.2 kB / 1.08 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.6999, allocations: 1.142 MB / 1.082 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.6999, allocations: 11.98 kB / 1.082 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.6999, allocations: 3.938 kB / 1.082 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.6999, allocations: 3.984 kB / 1.082 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005242/0.7052, allocations: 2.502 MB / 1.084 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.7052, allocations: 4 kB / 1.084 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003584/0.7056, allocations: 83.88 kB / 1.084 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007064/0.7063, allocations: 216.8 kB / 1.084 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.7063, allocations: 16 kB / 1.084 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/0.7075, allocations: 0.7708 MB / 1.085 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.7076, allocations: 4.031 kB / 1.085 GB, free: 5.062 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003172/0.7107, allocations: 1.21 MB / 1.086 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005059/0.7113, allocations: 343 kB / 1.087 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.7115, allocations: 15.91 kB / 1.087 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009165/0.7124, allocations: 87.78 kB / 1.087 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.454e-05/0.7125, allocations: 44.5 kB / 1.087 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.657e-05/0.7125, allocations: 27.98 kB / 1.087 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001613/0.7142, allocations: 1.074 MB / 1.088 GB, free: 2.207 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.7e-07/0.7142, allocations: 0 / 1.088 GB, free: 2.207 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001125/0.7153, allocations: 431.4 kB / 1.088 GB, free: 1.785 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004262/0.7196, allocations: 2.124 MB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002138/0.7217, allocations: 0.8679 MB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7217, allocations: 4 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.723, allocations: 439.5 kB / 1.092 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/0.7258, allocations: 0.7394 MB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/0.7504, allocations: 11.66 MB / 1.104 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007115/0.7511, allocations: 1.179 MB / 1.105 GB, free: 148 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0009658/0.7521, allocations: 274.5 kB / 1.105 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006833/0.7527, allocations: 0.55 MB / 1.106 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of SimCode: time 5.2e-07/0.7528, allocations: 0 / 1.106 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.3/2.053, allocations: 42.77 MB / 1.147 GB, free: 5.125 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000339/2.053, allocations: 279.2 kB / 1.148 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.837/4.891, allocations: 3.938 kB / 1.148 GB, free: 4.734 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/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) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches