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.001824/0.001824, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001969/0.001969, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.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.451/2.451, allocations: 437.1 MB / 0.7104 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 71.89 kB / 0.8693 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5285/0.5298, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06414/0.594, allocations: 70.51 MB / 1.086 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.022/0.616, allocations: 18.92 MB / 1.105 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002289/0.6184, allocations: 71.56 kB / 1.105 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.621, allocations: 0.8111 MB / 1.106 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007319/0.6283, allocations: 2.865 MB / 1.108 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003735/0.6321, allocations: 1.639 MB / 1.11 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00527/0.6374, allocations: 4.041 MB / 1.114 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002406/0.6398, allocations: 1.457 MB / 1.115 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003829/0.6436, allocations: 1.758 MB / 1.117 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002003/0.6457, allocations: 1.171 MB / 1.118 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004406/0.6461, allocations: 180 kB / 1.118 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002984/0.6491, allocations: 1.408 MB / 1.12 GB, free: 9.309 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004842/0.6496, allocations: 390.6 kB / 1.12 GB, free: 8.926 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.6509, allocations: 0.9216 MB / 1.121 GB, free: 8 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004113/0.655, allocations: 3.07 MB / 1.124 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.655, allocations: 0 / 1.124 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.723e-06/0.655, allocations: 0 / 1.124 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.464e-05/0.6551, allocations: 4 kB / 1.124 GB, free: 4.918 MB / 0.8731 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.003764/0.6589, allocations: 2.028 MB / 1.126 GB, free: 2.828 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.6589, allocations: 12.03 kB / 1.126 GB, free: 2.816 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.6591, allocations: 152.6 kB / 1.126 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002263/0.6614, allocations: 450.2 kB / 1.127 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002798/0.6642, allocations: 1.485 MB / 1.128 GB, free: 0.6758 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003831/0.6646, allocations: 138 kB / 1.128 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.6647, allocations: 107.9 kB / 1.128 GB, free: 444 kB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002619/0.6674, allocations: 1.318 MB / 1.13 GB, free: 15.01 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.6674, allocations: 7.938 kB / 1.13 GB, free: 15 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.6675, allocations: 40 kB / 1.13 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.6676, allocations: 28 kB / 1.13 GB, free: 14.93 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.6703, allocations: 1.112 MB / 1.131 GB, free: 13.82 MB / 0.8887 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.008494/0.6788, allocations: 7.548 MB / 1.138 GB, free: 5.758 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003193/0.6821, allocations: 0.8055 MB / 1.139 GB, free: 4.945 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006361/0.6827, allocations: 286 kB / 1.139 GB, free: 4.664 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001158/0.6839, allocations: 1.718 MB / 1.141 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.6839, allocations: 42.94 kB / 1.141 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=48): time 3.616e-06/0.6839, allocations: 4 kB / 1.141 GB, free: 2.504 MB / 0.8887 GB Notification: Performance of matching and sorting (n=48): time 0.005013/0.689, allocations: 1.346 MB / 1.142 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.689, allocations: 55.84 kB / 1.142 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.6917, allocations: 1.545 MB / 1.144 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.399e-05/0.6918, allocations: 37.7 kB / 1.144 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005967/0.6924, allocations: 0.6768 MB / 1.144 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.6926, allocations: 169.6 kB / 1.145 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003042/0.6929, allocations: 174.4 kB / 1.145 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.693, allocations: 337.9 kB / 1.145 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.694, allocations: 365.8 kB / 1.145 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.6953, allocations: 0.6702 MB / 1.146 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/0.6971, allocations: 0.8829 MB / 1.147 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.6972, allocations: 4 kB / 1.147 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003116/0.7003, allocations: 1.205 MB / 1.148 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.7003, allocations: 9.406 kB / 1.148 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.7003, allocations: 8 kB / 1.148 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008714/0.7012, allocations: 228.6 kB / 1.148 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007837/0.702, allocations: 187.7 kB / 1.149 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008507/0.7029, allocations: 0.7278 MB / 1.149 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.7045, allocations: 218.7 kB / 1.15 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.566e-05/0.7046, allocations: 43.98 kB / 1.15 GB, free: 9.297 MB / 0.9044 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.0005532/0.7051, allocations: 353.6 kB / 1.15 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003103/0.7055, allocations: 154.1 kB / 1.15 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002505/0.708, allocations: 1.141 MB / 1.151 GB, free: 7.621 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.708, allocations: 11.98 kB / 1.151 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.708, allocations: 0 / 1.151 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.708, allocations: 3.984 kB / 1.151 GB, free: 7.605 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005223/0.7133, allocations: 2.514 MB / 1.154 GB, free: 5.012 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.7133, allocations: 0 / 1.154 GB, free: 5.012 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.7137, allocations: 79.89 kB / 1.154 GB, free: 4.934 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007671/0.7144, allocations: 220.7 kB / 1.154 GB, free: 4.715 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.63e-05/0.7145, allocations: 19.98 kB / 1.154 GB, free: 4.695 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.7158, allocations: 0.7707 MB / 1.155 GB, free: 3.898 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.7158, allocations: 4.031 kB / 1.155 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003477/0.7193, allocations: 1.203 MB / 1.156 GB, free: 2.652 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005933/0.7199, allocations: 354.9 kB / 1.156 GB, free: 2.285 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002561/0.7202, allocations: 12 kB / 1.156 GB, free: 2.273 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009629/0.7212, allocations: 79.91 kB / 1.156 GB, free: 2.195 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.7213, allocations: 44.44 kB / 1.156 GB, free: 2.148 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.25e-05/0.7213, allocations: 27.98 kB / 1.156 GB, free: 2.121 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001812/0.7232, allocations: 1.086 MB / 1.157 GB, free: 1.039 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/0.7232, allocations: 0 / 1.157 GB, free: 1.039 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001255/0.7244, allocations: 447.4 kB / 1.158 GB, free: 0.6016 MB / 0.9044 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.004476/0.7289, allocations: 2.109 MB / 1.16 GB, free: 14.45 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002392/0.7313, allocations: 0.8911 MB / 1.161 GB, free: 13.56 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.7313, allocations: 0 / 1.161 GB, free: 13.56 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.7329, allocations: 443.8 kB / 1.161 GB, free: 13.13 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003437/0.7363, allocations: 0.7518 MB / 1.162 GB, free: 12.39 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/0.758, allocations: 11.39 MB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008094/0.7588, allocations: 1.179 MB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001321/0.7602, allocations: 261.4 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008208/0.761, allocations: 0.5539 MB / 1.175 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of SimCode: time 7.21e-07/0.761, allocations: 0 / 1.175 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6618/1.423, allocations: 43.43 MB / 1.217 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/14.8, allocations: 15.94 kB / 1.217 GB, free: 3.469 MB / 0.9669 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