Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.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: translateModel(Buildings.Fluid.Chillers.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y") translateModel(Buildings.Fluid.Chillers.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001539/0.001539, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.438 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.576/2.576, allocations: 390.9 MB / 0.666 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005086/0.0005086, allocations: 15.98 kB / 0.8153 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8764/0.877, allocations: 142.4 MB / 0.9544 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.Carnot_y): time 0.07776/0.9548, allocations: 69.42 MB / 1.022 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01986/0.9747, allocations: 11.96 MB / 1.034 GB, free: 13.98 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003573/0.9783, allocations: 55.62 kB / 1.034 GB, free: 13.93 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.9811, allocations: 0.5666 MB / 1.034 GB, free: 13.36 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.008173/0.9893, allocations: 1.89 MB / 1.036 GB, free: 11.46 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00398/0.9933, allocations: 0.9659 MB / 1.037 GB, free: 10.51 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.007815/1.001, allocations: 4.793 MB / 1.042 GB, free: 5.703 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003208/1.004, allocations: 1.027 MB / 1.043 GB, free: 4.648 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004099/1.008, allocations: 1.264 MB / 1.044 GB, free: 3.379 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003175/1.012, allocations: 1.069 MB / 1.045 GB, free: 2.305 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0006272/1.012, allocations: 52 kB / 1.045 GB, free: 2.254 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004226/1.017, allocations: 0.9237 MB / 1.046 GB, free: 1.328 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0008799/1.017, allocations: 270.8 kB / 1.046 GB, free: 1.062 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001325/1.019, allocations: 356.9 kB / 1.047 GB, free: 0.707 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003922/1.023, allocations: 2.077 MB / 1.049 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/1.023, allocations: 4 kB / 1.049 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.665e-06/1.023, allocations: 0 / 1.049 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.045e-05/1.023, allocations: 4 kB / 1.049 GB, free: 14.62 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004442/1.027, allocations: 1.787 MB / 1.051 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/1.027, allocations: 12.03 kB / 1.051 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/1.028, allocations: 234 kB / 1.051 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003218/1.032, allocations: 1.454 MB / 1.052 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-05/1.032, allocations: 78 kB / 1.052 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002475/1.032, allocations: 100 kB / 1.052 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/1.034, allocations: 1.112 MB / 1.053 GB, free: 9.691 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/1.034, allocations: 8 kB / 1.053 GB, free: 9.684 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/1.034, allocations: 36 kB / 1.054 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-05/1.034, allocations: 24 kB / 1.054 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/1.037, allocations: 0.9251 MB / 1.054 GB, free: 8.699 MB / 0.8106 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.006731/1.043, allocations: 4.904 MB / 1.059 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/1.045, allocations: 0.6399 MB / 1.06 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006862/1.045, allocations: 364.2 kB / 1.06 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006432/1.046, allocations: 0.8277 MB / 1.061 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/1.046, allocations: 43.12 kB / 1.061 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 3.467e-06/1.046, allocations: 0 / 1.061 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.006592/1.053, allocations: 1.877 MB / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.053, allocations: 59.97 kB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/1.055, allocations: 1.198 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.907e-05/1.055, allocations: 41.7 kB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005723/1.055, allocations: 0.6142 MB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/1.056, allocations: 205 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/1.056, allocations: 16 kB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000125/1.056, allocations: 337.8 kB / 1.065 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006293/1.056, allocations: 297.8 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007895/1.057, allocations: 0.4998 MB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007192/1.058, allocations: 363 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/1.058, allocations: 4 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004184/1.062, allocations: 1.39 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/1.062, allocations: 198.2 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/1.062, allocations: 4 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005659/1.063, allocations: 144.7 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006021/1.063, allocations: 167.8 kB / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007642/1.064, allocations: 0.7084 MB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/1.065, allocations: 168.4 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.818e-05/1.066, allocations: 31.98 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.203e-06/1.066, allocations: 4 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003895/1.069, allocations: 1.249 MB / 1.07 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/1.069, allocations: 0 / 1.07 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005082/1.07, allocations: 149 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005623/1.071, allocations: 167.8 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007839/1.071, allocations: 0.7046 MB / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/1.073, allocations: 159.3 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-05/1.073, allocations: 31.98 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (79): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007643/1.074, allocations: 427.8 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003594/1.074, allocations: 134.4 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/1.078, allocations: 1.396 MB / 1.073 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/1.078, allocations: 4 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/1.078, allocations: 0 / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003664/1.082, allocations: 1.236 MB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006968/1.089, allocations: 2.747 MB / 1.077 GB, free: 328 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/1.089, allocations: 0 / 1.077 GB, free: 328 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004832/1.089, allocations: 119.9 kB / 1.077 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004704/1.09, allocations: 144.7 kB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/1.09, allocations: 19.98 kB / 1.078 GB, free: 40 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004644/1.095, allocations: 2.435 MB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.095, allocations: 7.953 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/1.1, allocations: 1.844 MB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000875/1.101, allocations: 331.1 kB / 1.082 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003678/1.101, allocations: 12 kB / 1.082 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/1.102, allocations: 95.81 kB / 1.082 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/1.103, allocations: 64.25 kB / 1.082 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.544e-05/1.103, allocations: 31.98 kB / 1.082 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001804/1.105, allocations: 0.8582 MB / 1.083 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/1.105, allocations: 0 / 1.083 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002596/1.107, allocations: 0.7057 MB / 1.084 GB, free: 9.426 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (chi.con.vol.dynBal.U,chi.eva.vol.dynBal.U) * 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 (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/1.108, allocations: 419.5 kB / 1.084 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002978/1.111, allocations: 1.168 MB / 1.085 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/1.111, allocations: 0 / 1.085 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001576/1.113, allocations: 0.5956 MB / 1.086 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003978/1.117, allocations: 0.7663 MB / 1.087 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004906/1.122, allocations: 2.757 MB / 1.089 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000998/1.123, allocations: 1.165 MB / 1.091 GB, free: 2.461 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001393/1.124, allocations: 315 kB / 1.091 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/1.124, allocations: 103.4 kB / 1.091 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of SimCode: time 8.71e-07/1.124, allocations: 0 / 1.091 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of Templates: time 0.05893/1.183, allocations: 29.3 MB / 1.12 GB, free: 5.113 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_Carnot_y.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches