Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_10_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.005923/0.005923, allocations: 102 kB / 15.73 MB, free: 6.055 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.001347/0.001347, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.401/2.401, allocations: 437.1 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 68.11 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8832/0.8858, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06567/0.9515, allocations: 70.5 MB / 1.235 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02428/0.9758, allocations: 18.92 MB / 1.253 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002766/0.9786, allocations: 71.56 kB / 1.254 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002424/0.9811, allocations: 0.8385 MB / 1.254 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.007817/0.9889, allocations: 3.008 MB / 1.257 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.004178/0.9931, allocations: 1.662 MB / 1.259 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005461/0.9986, allocations: 4.056 MB / 1.263 GB, free: 400 kB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002201/1.001, allocations: 1.453 MB / 1.264 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004785/1.006, allocations: 1.812 MB / 1.266 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002255/1.008, allocations: 1.18 MB / 1.267 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002901/1.008, allocations: 175.9 kB / 1.267 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003371/1.012, allocations: 1.412 MB / 1.269 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003834/1.012, allocations: 398.6 kB / 1.269 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001004/1.013, allocations: 0.9099 MB / 1.27 GB, free: 9.016 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006575/1.02, allocations: 3.108 MB / 1.273 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/1.02, allocations: 0 / 1.273 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.686e-06/1.02, allocations: 0 / 1.273 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.259e-05/1.02, allocations: 0 / 1.273 GB, free: 5.898 MB / 0.9981 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.004172/1.024, allocations: 2.027 MB / 1.275 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/1.024, allocations: 8.031 kB / 1.275 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001723/1.024, allocations: 160.6 kB / 1.275 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002184/1.026, allocations: 446.1 kB / 1.276 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002712/1.029, allocations: 1.547 MB / 1.277 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.317e-05/1.029, allocations: 82.03 kB / 1.277 GB, free: 1.512 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/1.029, allocations: 100 kB / 1.277 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/1.032, allocations: 1.317 MB / 1.279 GB, free: 15.99 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/1.032, allocations: 3.938 kB / 1.279 GB, free: 15.98 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.461e-05/1.032, allocations: 44 kB / 1.279 GB, free: 15.94 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.462e-05/1.032, allocations: 28 kB / 1.279 GB, free: 15.91 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/1.034, allocations: 1.108 MB / 1.28 GB, free: 14.8 MB / 1.014 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.008711/1.043, allocations: 7.486 MB / 1.287 GB, free: 6.805 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003067/1.046, allocations: 0.8062 MB / 1.288 GB, free: 5.992 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005948/1.047, allocations: 290 kB / 1.288 GB, free: 5.707 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001168/1.048, allocations: 1.714 MB / 1.29 GB, free: 3.602 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/1.048, allocations: 42.94 kB / 1.29 GB, free: 3.551 MB / 1.014 GB Notification: Performance of pre-optimization done (n=48): time 2.615e-06/1.048, allocations: 4 kB / 1.29 GB, free: 3.547 MB / 1.014 GB Notification: Performance of matching and sorting (n=48): time 0.004763/1.053, allocations: 1.33 MB / 1.291 GB, free: 2.191 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/1.053, allocations: 63.84 kB / 1.291 GB, free: 2.117 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00229/1.055, allocations: 1.545 MB / 1.293 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.936e-05/1.055, allocations: 37.7 kB / 1.293 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005416/1.056, allocations: 0.6731 MB / 1.293 GB, free: 15.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/1.056, allocations: 173.5 kB / 1.294 GB, free: 15.66 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/1.056, allocations: 170.5 kB / 1.294 GB, free: 15.49 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001262/1.056, allocations: 337.9 kB / 1.294 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009197/1.057, allocations: 365.8 kB / 1.294 GB, free: 14.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/1.059, allocations: 0.6621 MB / 1.295 GB, free: 14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001682/1.06, allocations: 0.8906 MB / 1.296 GB, free: 13.01 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/1.06, allocations: 8 kB / 1.296 GB, free: 13 MB / 1.029 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002979/1.063, allocations: 1.186 MB / 1.297 GB, free: 11.8 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/1.063, allocations: 12 kB / 1.297 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/1.063, allocations: 8 kB / 1.297 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008803/1.064, allocations: 220.6 kB / 1.297 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007498/1.065, allocations: 195.7 kB / 1.298 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008073/1.066, allocations: 0.7123 MB / 1.298 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/1.067, allocations: 210.6 kB / 1.298 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.301e-05/1.067, allocations: 43.98 kB / 1.298 GB, free: 10.39 MB / 1.029 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.0005685/1.068, allocations: 365.7 kB / 1.299 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/1.068, allocations: 150.2 kB / 1.299 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002295/1.07, allocations: 1.139 MB / 1.3 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/1.071, allocations: 8 kB / 1.3 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/1.071, allocations: 0 / 1.3 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/1.071, allocations: 3.984 kB / 1.3 GB, free: 8.703 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004985/1.076, allocations: 2.514 MB / 1.303 GB, free: 6.109 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/1.076, allocations: 8 kB / 1.303 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/1.076, allocations: 87.81 kB / 1.303 GB, free: 6.016 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007553/1.077, allocations: 216.8 kB / 1.303 GB, free: 5.801 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.082e-05/1.077, allocations: 12 kB / 1.303 GB, free: 5.789 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/1.078, allocations: 0.7747 MB / 1.304 GB, free: 4.988 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.078, allocations: 0 / 1.304 GB, free: 4.988 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003253/1.081, allocations: 1.199 MB / 1.305 GB, free: 3.75 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/1.082, allocations: 358.8 kB / 1.305 GB, free: 3.379 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/1.082, allocations: 16 kB / 1.305 GB, free: 3.363 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008709/1.083, allocations: 67.91 kB / 1.305 GB, free: 3.297 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/1.083, allocations: 44.45 kB / 1.305 GB, free: 3.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-05/1.083, allocations: 23.98 kB / 1.305 GB, free: 3.227 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001786/1.085, allocations: 1.09 MB / 1.306 GB, free: 2.141 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.01e-07/1.085, allocations: 0 / 1.306 GB, free: 2.141 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001348/1.086, allocations: 443.4 kB / 1.307 GB, free: 1.707 MB / 1.029 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.004251/1.091, allocations: 2.123 MB / 1.309 GB, free: 15.55 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002178/1.093, allocations: 0.8525 MB / 1.31 GB, free: 14.7 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.093, allocations: 4 kB / 1.31 GB, free: 14.69 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/1.094, allocations: 435.5 kB / 1.31 GB, free: 14.27 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/1.097, allocations: 0.746 MB / 1.311 GB, free: 13.53 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/1.114, allocations: 10.44 MB / 1.321 GB, free: 2.711 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/1.115, allocations: 1.168 MB / 1.322 GB, free: 1.512 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0009685/1.116, allocations: 264.2 kB / 1.322 GB, free: 1.25 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006914/1.116, allocations: 0.55 MB / 1.323 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of SimCode: time 5.21e-07/1.116, allocations: 0 / 1.323 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07494/1.191, allocations: 43.74 MB / 1.366 GB, free: 5.406 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/15.61, allocations: 7.953 kB / 1.366 GB, free: 5.398 MB / 1.092 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches