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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008686/0.0008686, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.004819/0.004819, allocations: 168.5 kB / 16.26 MB, free: 6.652 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.29/1.29, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002875, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5421/0.5424, allocations: 142.4 MB / 0.9552 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06147/0.6039, allocations: 68.88 MB / 1.022 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02128/0.6252, allocations: 18.76 MB / 1.041 GB, free: 7.57 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.627, allocations: 59.62 kB / 1.041 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001808/0.6289, allocations: 0.6566 MB / 1.041 GB, free: 6.852 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005915/0.6348, allocations: 2.617 MB / 1.044 GB, free: 4.227 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.638, allocations: 1.491 MB / 1.045 GB, free: 2.746 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.005116/0.6431, allocations: 5.017 MB / 1.05 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001738/0.6449, allocations: 1.136 MB / 1.051 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002798/0.6477, allocations: 1.462 MB / 1.053 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.6491, allocations: 1.108 MB / 1.054 GB, free: 9.965 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.6493, allocations: 56 kB / 1.054 GB, free: 9.91 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002228/0.6515, allocations: 1.216 MB / 1.055 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.6517, allocations: 262.6 kB / 1.055 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0007139/0.6525, allocations: 0.81 MB / 1.056 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002681/0.6551, allocations: 2.952 MB / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.6552, allocations: 4 kB / 1.059 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6552, allocations: 0 / 1.059 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.737e-05/0.6552, allocations: 0 / 1.059 GB, free: 4.648 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.002669/0.6579, allocations: 1.707 MB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.6579, allocations: 12.03 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.6581, allocations: 152.6 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002227/0.6603, allocations: 0.5016 MB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.6625, allocations: 1.504 MB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003678/0.6629, allocations: 146 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.663, allocations: 100 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00236/0.6654, allocations: 1.325 MB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.6654, allocations: 0 / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-05/0.6655, allocations: 47.94 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.6656, allocations: 27.98 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002641/0.6682, allocations: 1.167 MB / 1.066 GB, free: 13.74 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.00731/0.6755, allocations: 7.176 MB / 1.073 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003232/0.6788, allocations: 0.901 MB / 1.074 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006204/0.6794, allocations: 302 kB / 1.074 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001095/0.6805, allocations: 1.726 MB / 1.076 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.6805, allocations: 35 kB / 1.076 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 1.663e-06/0.6806, allocations: 0 / 1.076 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.00469/0.6853, allocations: 1.452 MB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.6853, allocations: 59.84 kB / 1.077 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.6874, allocations: 1.533 MB / 1.079 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.808e-05/0.6874, allocations: 37.7 kB / 1.079 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000506/0.6879, allocations: 0.6613 MB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.6881, allocations: 173.6 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.936e-05/0.6882, allocations: 61.69 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.6883, allocations: 333.9 kB / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.6893, allocations: 389.8 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.6905, allocations: 0.6666 MB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.6922, allocations: 0.8874 MB / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.6922, allocations: 0 / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004314/0.6966, allocations: 1.447 MB / 1.083 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.6966, allocations: 8 kB / 1.083 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.6966, allocations: 8 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008529/0.6975, allocations: 232.9 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/0.6982, allocations: 191.8 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008493/0.6991, allocations: 0.7279 MB / 1.084 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.7006, allocations: 266.7 kB / 1.084 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-05/0.7007, allocations: 43.98 kB / 1.084 GB, free: 9.238 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.0004602/0.7012, allocations: 349.6 kB / 1.085 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.7013, allocations: 150.1 kB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.7037, allocations: 1.18 MB / 1.086 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.7037, allocations: 11.98 kB / 1.086 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.7037, allocations: 0 / 1.086 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.7037, allocations: 3.984 kB / 1.086 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004961/0.7087, allocations: 2.588 MB / 1.089 GB, free: 4.855 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.7087, allocations: 7.938 kB / 1.089 GB, free: 4.848 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.7091, allocations: 92.06 kB / 1.089 GB, free: 4.758 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007287/0.7098, allocations: 228.5 kB / 1.089 GB, free: 4.531 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.7099, allocations: 19.98 kB / 1.089 GB, free: 4.512 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/0.7111, allocations: 0.802 MB / 1.09 GB, free: 3.684 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.7112, allocations: 4.031 kB / 1.09 GB, free: 3.68 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.7145, allocations: 1.293 MB / 1.091 GB, free: 2.344 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004447/0.715, allocations: 370.8 kB / 1.091 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.7152, allocations: 12 kB / 1.091 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009679/0.7161, allocations: 107.8 kB / 1.092 GB, free: 1.844 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.206e-05/0.7162, allocations: 44.44 kB / 1.092 GB, free: 1.801 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.198e-05/0.7163, allocations: 27.98 kB / 1.092 GB, free: 1.773 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001601/0.7179, allocations: 1.086 MB / 1.093 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7179, allocations: 0 / 1.093 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001151/0.7191, allocations: 439.3 kB / 1.093 GB, free: 268 kB / 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.004403/0.7235, allocations: 2.201 MB / 1.095 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002066/0.7256, allocations: 0.8641 MB / 1.096 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.7256, allocations: 4 kB / 1.096 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.7269, allocations: 475.6 kB / 1.097 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/0.7302, allocations: 0.709 MB / 1.097 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0246/0.7549, allocations: 11.85 MB / 1.109 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000748/0.7556, allocations: 1.176 MB / 1.11 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009922/0.7566, allocations: 263.9 kB / 1.11 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007199/0.7573, allocations: 0.55 MB / 1.111 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.7574, allocations: 0 / 1.111 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06178/0.8191, allocations: 42.2 MB / 1.152 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000318/0.8195, allocations: 286.4 kB / 1.152 GB, free: 3.488 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.623/3.442, allocations: 7.031 kB / 1.152 GB, free: 3.484 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