Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00852/0.00852, allocations: 170 kB / 16.26 MB, free: 6.613 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.395/1.395, 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.3-maint.9.1.x/package.mo): time 2.389/2.389, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003717, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6739/0.6743, allocations: 142.4 MB / 0.955 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05989/0.7343, allocations: 59.77 MB / 1.013 GB, free: 3.441 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01632/0.7506, allocations: 11.91 MB / 1.025 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001754/0.7524, allocations: 47.69 kB / 1.025 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.7541, allocations: 0.5555 MB / 1.026 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004628/0.7587, allocations: 1.798 MB / 1.027 GB, free: 5.086 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002617/0.7613, allocations: 1.087 MB / 1.028 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004331/0.7657, allocations: 3.91 MB / 1.032 GB, free: 96 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.767, allocations: 0.8961 MB / 1.033 GB, free: 15.17 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002067/0.7691, allocations: 1.12 MB / 1.034 GB, free: 14.04 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.7702, allocations: 0.8553 MB / 1.035 GB, free: 13.18 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.7703, allocations: 44 kB / 1.035 GB, free: 13.14 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.7728, allocations: 1.321 MB / 1.036 GB, free: 11.82 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002398/0.7731, allocations: 210.9 kB / 1.037 GB, free: 11.61 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0007098/0.7738, allocations: 0.6272 MB / 1.037 GB, free: 10.97 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002868/0.7767, allocations: 2.185 MB / 1.039 GB, free: 8.781 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.7767, allocations: 4 kB / 1.039 GB, free: 8.777 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.964e-06/0.7767, allocations: 0 / 1.039 GB, free: 8.777 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.447e-05/0.7767, allocations: 0 / 1.039 GB, free: 8.777 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002663/0.7794, allocations: 1.489 MB / 1.041 GB, free: 7.23 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.7794, allocations: 8.031 kB / 1.041 GB, free: 7.223 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/0.7817, allocations: 478.8 kB / 1.041 GB, free: 6.754 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/0.7837, allocations: 1.132 MB / 1.042 GB, free: 5.562 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003647/0.784, allocations: 125.9 kB / 1.042 GB, free: 5.441 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.7842, allocations: 80 kB / 1.043 GB, free: 5.363 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/0.7863, allocations: 1.009 MB / 1.044 GB, free: 4.309 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.7863, allocations: 0 / 1.044 GB, free: 4.309 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.289e-05/0.7864, allocations: 32 kB / 1.044 GB, free: 4.277 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.7864, allocations: 20 kB / 1.044 GB, free: 4.258 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002438/0.7889, allocations: 0.9211 MB / 1.044 GB, free: 3.336 MB / 0.795 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.006261/0.7951, allocations: 4.891 MB / 1.049 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003686/0.7989, allocations: 0.8876 MB / 1.05 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007853/0.7997, allocations: 328.6 kB / 1.05 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007313/0.8004, allocations: 0.8986 MB / 1.051 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.8004, allocations: 34.56 kB / 1.051 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=43): time 2.956e-06/0.8005, allocations: 0 / 1.051 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43): time 0.009132/0.8096, allocations: 2.169 MB / 1.053 GB, free: 9.523 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.8097, allocations: 59.36 kB / 1.054 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.8113, allocations: 1.051 MB / 1.055 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.759e-05/0.8114, allocations: 37.7 kB / 1.055 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004287/0.8118, allocations: 0.5234 MB / 1.055 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.812, allocations: 149.8 kB / 1.055 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.131e-05/0.812, allocations: 53.69 kB / 1.055 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.8122, allocations: 326 kB / 1.056 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009466/0.8131, allocations: 328.8 kB / 1.056 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.8142, allocations: 0.5377 MB / 1.056 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.816, allocations: 0.7357 MB / 1.057 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.816, allocations: 0 / 1.057 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002786/0.8188, allocations: 1.055 MB / 1.058 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.819, allocations: 221.5 kB / 1.058 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.819, allocations: 4 kB / 1.058 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.8203, allocations: 336.5 kB / 1.059 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.8209, allocations: 127.8 kB / 1.059 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.8224, allocations: 0.9366 MB / 1.06 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.8237, allocations: 191.2 kB / 1.06 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.8238, allocations: 31.98 kB / 1.06 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.8238, allocations: 4 kB / 1.06 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00253/0.8263, allocations: 0.9177 MB / 1.061 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.8264, allocations: 4.188 kB / 1.061 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.8275, allocations: 333 kB / 1.061 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005313/0.8281, allocations: 127.8 kB / 1.061 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.8295, allocations: 0.9325 MB / 1.062 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.8307, allocations: 167.5 kB / 1.062 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.8307, allocations: 27.98 kB / 1.062 GB, free: 28 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.000511/0.8312, allocations: 356.9 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.8314, allocations: 110.6 kB / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004062/0.8355, allocations: 1.203 MB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.8355, allocations: 4 kB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.8355, allocations: 3.938 kB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.8355, allocations: 0 / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005333/0.8409, allocations: 2.272 MB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.8409, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.8412, allocations: 67.89 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/0.8423, allocations: 334.5 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.745e-05/0.8424, allocations: 19.98 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001554/0.8439, allocations: 0.9582 MB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.8439, allocations: 3.938 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003753/0.8477, allocations: 1.261 MB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004995/0.8482, allocations: 287.4 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.8483, allocations: 12 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009059/0.8493, allocations: 107.9 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.8494, allocations: 35.89 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-05/0.8495, allocations: 27.92 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001215/0.8507, allocations: 0.7467 MB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.583e-06/0.8507, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001493/0.8522, allocations: 0.5651 MB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008024/0.853, allocations: 385.9 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003349/0.8564, allocations: 1.165 MB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.8564, allocations: 4.125 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0009309/0.8573, allocations: 370.3 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.8602, allocations: 0.5003 MB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.8658, allocations: 2.526 MB / 1.075 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/0.8664, allocations: 1.062 MB / 1.076 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0009158/0.8673, allocations: 232.5 kB / 1.077 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.8675, allocations: 71.42 kB / 1.077 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.8675, allocations: 4 kB / 1.077 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.03861/0.9061, allocations: 23.88 MB / 1.1 GB, free: 9.48 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches