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.007809/0.007809, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001408/0.001408, allocations: 201.8 kB / 16.68 MB, free: 5.926 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.299/2.299, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.001421, allocations: 71.88 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9494/0.9509, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07901/1.03, allocations: 70.51 MB / 1.156 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02763/1.058, allocations: 18.92 MB / 1.175 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003593/1.061, allocations: 66.81 kB / 1.175 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003017/1.064, allocations: 0.8196 MB / 1.176 GB, free: 4.523 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01118/1.076, allocations: 2.857 MB / 1.178 GB, free: 2.812 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005697/1.081, allocations: 1.651 MB / 1.18 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.007902/1.089, allocations: 4.043 MB / 1.184 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003353/1.093, allocations: 1.46 MB / 1.185 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006087/1.099, allocations: 1.8 MB / 1.187 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00327/1.102, allocations: 1.181 MB / 1.188 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0007095/1.103, allocations: 178.8 kB / 1.189 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005007/1.108, allocations: 1.408 MB / 1.19 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0007889/1.109, allocations: 395.3 kB / 1.19 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.002491/1.111, allocations: 0.9158 MB / 1.191 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.007563/1.119, allocations: 3.104 MB / 1.194 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/1.119, allocations: 0 / 1.194 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.265e-06/1.119, allocations: 0.9062 kB / 1.194 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.575e-05/1.119, allocations: 0 / 1.194 GB, free: 8.602 MB / 0.9356 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.006124/1.125, allocations: 2.036 MB / 1.196 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/1.125, allocations: 8.625 kB / 1.196 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003306/1.125, allocations: 154.1 kB / 1.196 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002739/1.128, allocations: 450.9 kB / 1.197 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003649/1.132, allocations: 1.539 MB / 1.198 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/1.132, allocations: 83.12 kB / 1.198 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/1.132, allocations: 101.9 kB / 1.198 GB, free: 5.391 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003142/1.135, allocations: 1.314 MB / 1.2 GB, free: 4.477 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/1.135, allocations: 2.219 kB / 1.2 GB, free: 4.477 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/1.135, allocations: 43.78 kB / 1.2 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.37e-05/1.135, allocations: 29.28 kB / 1.2 GB, free: 4.441 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003254/1.139, allocations: 1.106 MB / 1.201 GB, free: 3.879 MB / 0.9356 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.01164/1.15, allocations: 7.507 MB / 1.208 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003427/1.154, allocations: 0.811 MB / 1.209 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007072/1.155, allocations: 288 kB / 1.209 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001441/1.156, allocations: 1.718 MB / 1.211 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/1.156, allocations: 46.67 kB / 1.211 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=48): time 2.766e-06/1.156, allocations: 0 / 1.211 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.005496/1.162, allocations: 1.331 MB / 1.212 GB, free: 9.586 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/1.162, allocations: 61.09 kB / 1.212 GB, free: 9.52 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00324/1.165, allocations: 1.542 MB / 1.214 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001179/1.165, allocations: 37.11 kB / 1.214 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006587/1.166, allocations: 0.6767 MB / 1.215 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/1.166, allocations: 167.9 kB / 1.215 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/1.166, allocations: 177.7 kB / 1.215 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001339/1.166, allocations: 336.6 kB / 1.215 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/1.168, allocations: 366.9 kB / 1.216 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/1.169, allocations: 0.6596 MB / 1.216 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001987/1.171, allocations: 0.8876 MB / 1.217 GB, free: 6.047 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/1.171, allocations: 2.25 kB / 1.217 GB, free: 6.047 MB / 0.9512 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003636/1.175, allocations: 1.184 MB / 1.218 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/1.175, allocations: 9.188 kB / 1.218 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/1.175, allocations: 7.062 kB / 1.218 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/1.176, allocations: 231.2 kB / 1.218 GB, free: 5.312 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007656/1.176, allocations: 191 kB / 1.219 GB, free: 5.262 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009051/1.177, allocations: 0.7211 MB / 1.219 GB, free: 4.625 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/1.179, allocations: 212 kB / 1.22 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/1.18, allocations: 43.09 kB / 1.22 GB, free: 4.496 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (84): * Single equations (assignments): 83 * 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.000709/1.18, allocations: 367.5 kB / 1.22 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004828/1.181, allocations: 148.7 kB / 1.22 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002938/1.184, allocations: 1.14 MB / 1.221 GB, free: 3.469 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.882e-05/1.184, allocations: 10.55 kB / 1.221 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/1.184, allocations: 1.281 kB / 1.221 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/1.184, allocations: 0 / 1.221 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006168/1.19, allocations: 2.51 MB / 1.224 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/1.19, allocations: 96 / 1.224 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003831/1.19, allocations: 91.75 kB / 1.224 GB, free: 0.8555 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007874/1.191, allocations: 216.8 kB / 1.224 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.293e-05/1.191, allocations: 16 kB / 1.224 GB, free: 0.625 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/1.193, allocations: 0.7708 MB / 1.225 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.193, allocations: 4.031 kB / 1.225 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003706/1.196, allocations: 1.199 MB / 1.226 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008962/1.197, allocations: 350.9 kB / 1.226 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/1.198, allocations: 12 kB / 1.226 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/1.199, allocations: 75.91 kB / 1.226 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/1.199, allocations: 40.45 kB / 1.226 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/1.199, allocations: 27.98 kB / 1.226 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002089/1.201, allocations: 1.086 MB / 1.227 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3e-07/1.201, allocations: 0 / 1.227 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001744/1.203, allocations: 447.3 kB / 1.228 GB, free: 12.55 MB / 0.9669 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.004975/1.208, allocations: 2.128 MB / 1.23 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002392/1.21, allocations: 0.8411 MB / 1.231 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.21, allocations: 4.062 kB / 1.231 GB, free: 9.543 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/1.212, allocations: 443.2 kB / 1.231 GB, free: 9.109 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004173/1.216, allocations: 0.7346 MB / 1.232 GB, free: 8.383 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/1.239, allocations: 10.44 MB / 1.242 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/1.24, allocations: 1.172 MB / 1.243 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001539/1.242, allocations: 277.4 kB / 1.244 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/1.243, allocations: 0.5461 MB / 1.244 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of SimCode: time 7.61e-07/1.243, allocations: 0 / 1.244 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08427/1.327, allocations: 44.47 MB / 1.287 GB, free: 15.63 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/15.57, allocations: 10.19 kB / 1.287 GB, free: 15.62 MB / 1.029 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