Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_11_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.007709/0.007709, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.002193/0.002193, allocations: 196.5 kB / 16.67 MB, free: 6.355 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.848/2.848, allocations: 469.8 MB / 0.7425 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 71.83 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2687, allocations: 159.1 MB / 1.22 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.5613/0.8301, allocations: 70.52 MB / 1.289 GB, free: 8.758 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02498/0.8551, allocations: 18.91 MB / 1.307 GB, free: 11.74 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002032/0.8571, allocations: 66.22 kB / 1.308 GB, free: 11.72 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.8593, allocations: 0.8292 MB / 1.308 GB, free: 11.17 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.007099/0.8664, allocations: 2.848 MB / 1.311 GB, free: 9.465 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004033/0.8704, allocations: 1.654 MB / 1.313 GB, free: 8.512 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.005537/0.876, allocations: 4.05 MB / 1.317 GB, free: 6.449 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002263/0.8783, allocations: 1.458 MB / 1.318 GB, free: 5.73 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.8823, allocations: 1.771 MB / 1.32 GB, free: 4.809 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001811/0.8841, allocations: 1.182 MB / 1.321 GB, free: 4.246 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0002305/0.8843, allocations: 174.8 kB / 1.321 GB, free: 4.246 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.8871, allocations: 1.416 MB / 1.323 GB, free: 3.738 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0004135/0.8876, allocations: 383.3 kB / 1.323 GB, free: 3.477 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0009575/0.8885, allocations: 0.9247 MB / 1.324 GB, free: 2.871 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003941/0.8925, allocations: 3.105 MB / 1.327 GB, free: 1.707 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.8925, allocations: 0 / 1.327 GB, free: 1.707 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8925, allocations: 0 / 1.327 GB, free: 1.707 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.882e-05/0.8925, allocations: 1.75 kB / 1.327 GB, free: 1.707 MB / 1.029 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.003583/0.8961, allocations: 2.085 MB / 1.329 GB, free: 284 kB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.8962, allocations: 9.906 kB / 1.329 GB, free: 284 kB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.8964, allocations: 154.6 kB / 1.329 GB, free: 180 kB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.8987, allocations: 457 kB / 1.33 GB, free: 64 kB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002721/0.9014, allocations: 1.558 MB / 1.331 GB, free: 15.1 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.843e-05/0.9015, allocations: 87.38 kB / 1.331 GB, free: 15.05 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.9017, allocations: 104.8 kB / 1.331 GB, free: 15.02 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/0.9043, allocations: 1.312 MB / 1.332 GB, free: 14.32 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.9044, allocations: 9.062 kB / 1.333 GB, free: 14.31 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.9045, allocations: 43.06 kB / 1.333 GB, free: 14.28 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.9045, allocations: 26.44 kB / 1.333 GB, free: 14.28 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002914/0.9075, allocations: 1.098 MB / 1.334 GB, free: 13.88 MB / 1.045 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.008805/0.9163, allocations: 7.515 MB / 1.341 GB, free: 7.914 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003315/0.9196, allocations: 0.8049 MB / 1.342 GB, free: 7.652 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.9203, allocations: 284.4 kB / 1.342 GB, free: 7.547 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001457/0.9217, allocations: 1.724 MB / 1.344 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.9218, allocations: 38.33 kB / 1.344 GB, free: 5.504 MB / 1.045 GB Notification: Performance of pre-optimization done (n=48): time 2.064e-06/0.9218, allocations: 0 / 1.344 GB, free: 5.504 MB / 1.045 GB Notification: Performance of matching and sorting (n=48): time 0.004913/0.9267, allocations: 1.346 MB / 1.345 GB, free: 4.992 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.9267, allocations: 57.53 kB / 1.345 GB, free: 4.93 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.929, allocations: 1.542 MB / 1.347 GB, free: 4.309 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.783e-05/0.9291, allocations: 38.61 kB / 1.347 GB, free: 4.27 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006468/0.9297, allocations: 0.6814 MB / 1.347 GB, free: 3.723 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.9299, allocations: 184.3 kB / 1.348 GB, free: 3.578 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002991/0.9302, allocations: 171.6 kB / 1.348 GB, free: 3.496 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.9304, allocations: 334 kB / 1.348 GB, free: 3.18 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.9314, allocations: 361.5 kB / 1.348 GB, free: 3.059 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.9327, allocations: 0.661 MB / 1.349 GB, free: 2.539 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001983/0.9347, allocations: 0.8874 MB / 1.35 GB, free: 1.891 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.605e-06/0.9347, allocations: 5.344 kB / 1.35 GB, free: 1.887 MB / 1.045 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003073/0.9378, allocations: 1.201 MB / 1.351 GB, free: 1.258 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.9379, allocations: 7.844 kB / 1.351 GB, free: 1.258 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.9379, allocations: 8.062 kB / 1.351 GB, free: 1.258 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008809/0.9388, allocations: 222.9 kB / 1.351 GB, free: 1.145 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00079/0.9396, allocations: 193.9 kB / 1.351 GB, free: 1.09 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009371/0.9405, allocations: 0.7229 MB / 1.352 GB, free: 464 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.942, allocations: 223.1 kB / 1.352 GB, free: 332 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.35e-05/0.9421, allocations: 44.33 kB / 1.352 GB, free: 320 kB / 1.045 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.000502/0.9426, allocations: 354.7 kB / 1.353 GB, free: 48 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002597/0.9428, allocations: 158.1 kB / 1.353 GB, free: 15.96 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.9454, allocations: 1.137 MB / 1.354 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/0.9455, allocations: 10.58 kB / 1.354 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.9455, allocations: 96 / 1.354 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.9455, allocations: 7.922 kB / 1.354 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005444/0.9509, allocations: 2.516 MB / 1.356 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.951, allocations: 1.594 kB / 1.356 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/0.9513, allocations: 81.58 kB / 1.357 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007589/0.9521, allocations: 210.5 kB / 1.357 GB, free: 13.39 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.9522, allocations: 18.98 kB / 1.357 GB, free: 13.38 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001415/0.9536, allocations: 0.7767 MB / 1.358 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.9536, allocations: 5.484 kB / 1.358 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003585/0.9572, allocations: 1.206 MB / 1.359 GB, free: 11.98 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005085/0.9577, allocations: 367 kB / 1.359 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002061/0.9579, allocations: 15.94 kB / 1.359 GB, free: 11.65 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009333/0.9589, allocations: 73.69 kB / 1.359 GB, free: 11.61 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.49e-05/0.959, allocations: 40.25 kB / 1.359 GB, free: 11.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.008e-05/0.959, allocations: 24.61 kB / 1.359 GB, free: 11.58 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001789/0.9608, allocations: 1.083 MB / 1.36 GB, free: 10.99 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9608, allocations: 1.344 kB / 1.36 GB, free: 10.99 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001228/0.9621, allocations: 443.5 kB / 1.361 GB, free: 10.89 MB / 1.061 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.004792/0.9669, allocations: 2.14 MB / 1.363 GB, free: 9.453 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002194/0.9691, allocations: 0.853 MB / 1.364 GB, free: 9.059 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9691, allocations: 5.125 kB / 1.364 GB, free: 9.055 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.9705, allocations: 438.4 kB / 1.364 GB, free: 8.855 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/0.9736, allocations: 0.7447 MB / 1.365 GB, free: 8.457 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/0.9914, allocations: 10.49 MB / 1.375 GB, free: 2.051 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007781/0.9922, allocations: 1.169 MB / 1.376 GB, free: 1.137 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0008908/0.9931, allocations: 268.5 kB / 1.376 GB, free: 1 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007954/0.9939, allocations: 0.5432 MB / 1.377 GB, free: 0.5469 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.9939, allocations: 3.938 kB / 1.377 GB, free: 0.543 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08009/1.074, allocations: 43.74 MB / 1.42 GB, free: 8.066 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/15.08, allocations: 3.984 kB / 1.42 GB, free: 8.062 MB / 1.107 GB (rm -f Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches