Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01029/0.01029, allocations: 221.4 kB / 15.17 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001056/0.001056, allocations: 177.4 kB / 16.06 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.398/3.398, allocations: 389.1 MB / 405.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.845/3.845, allocations: 472.3 MB / 0.9018 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005259/0.0005261, allocations: 12 kB / 1.008 GB, free: 21.59 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4779/0.4784, allocations: 98.72 MB / 1.104 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc): time 0.09937/0.5779, allocations: 79.91 MB / 1.182 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.6873/1.265, allocations: 155.3 MB / 1.334 GB, free: 31.21 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003579/1.269, allocations: 84.22 kB / 1.334 GB, free: 31.18 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003142/1.272, allocations: 0.988 MB / 1.335 GB, free: 30.89 MB / 0.6823 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:25:17-26:47:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:23:17-24:49:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.009788/1.282, allocations: 3.01 MB / 1.338 GB, free: 30.13 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01234/1.294, allocations: 3.692 MB / 1.341 GB, free: 29.86 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.008549/1.303, allocations: 6.809 MB / 1.348 GB, free: 28.22 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003472/1.306, allocations: 2.112 MB / 1.35 GB, free: 27.37 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00341/1.31, allocations: 1.816 MB / 1.352 GB, free: 26.68 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002371/1.312, allocations: 1.698 MB / 1.353 GB, free: 25.99 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0003567/1.312, allocations: 98.59 kB / 1.354 GB, free: 25.99 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004718/1.317, allocations: 1.794 MB / 1.355 GB, free: 25.51 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.000685/1.318, allocations: 0.5792 MB / 1.356 GB, free: 25.25 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0008189/1.319, allocations: 0.5812 MB / 1.356 GB, free: 25.11 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.005126/1.324, allocations: 3.742 MB / 1.36 GB, free: 23.18 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.815e-06/1.324, allocations: 4.531 kB / 1.36 GB, free: 23.18 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.278e-06/1.324, allocations: 0 / 1.36 GB, free: 23.18 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.309e-05/1.324, allocations: 0 / 1.36 GB, free: 23.18 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.006431/1.33, allocations: 3.19 MB / 1.363 GB, free: 21.11 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/1.33, allocations: 8.125 kB / 1.363 GB, free: 21.11 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00487/1.335, allocations: 0.8302 MB / 1.364 GB, free: 20.73 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004537/1.34, allocations: 2.18 MB / 1.366 GB, free: 19.73 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005195/1.34, allocations: 225.5 kB / 1.366 GB, free: 19.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003689/1.341, allocations: 217.7 kB / 1.367 GB, free: 19.69 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005704/1.347, allocations: 2.507 MB / 1.369 GB, free: 18.77 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.652e-05/1.347, allocations: 7 kB / 1.369 GB, free: 18.76 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002548/1.347, allocations: 86.95 kB / 1.369 GB, free: 18.76 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.785e-05/1.347, allocations: 57.25 kB / 1.369 GB, free: 18.76 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007065/1.354, allocations: 2.52 MB / 1.372 GB, free: 18.21 MB / 0.6823 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.01742/1.371, allocations: 10.43 MB / 1.382 GB, free: 11.78 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005504/1.377, allocations: 1.878 MB / 1.384 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002422/1.379, allocations: 0.8394 MB / 1.384 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008586/1.388, allocations: 5.351 MB / 1.39 GB, free: 6.449 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002565/1.391, allocations: 1.027 MB / 1.391 GB, free: 5.672 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000776/1.391, allocations: 151.6 kB / 1.391 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=144): time 6.69e-06/1.391, allocations: 7.984 kB / 1.391 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of matching and sorting (n=144): time 0.009/1.4, allocations: 2.807 MB / 1.394 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/1.401, allocations: 171.5 kB / 1.394 GB, free: 3.109 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/1.404, allocations: 2.045 MB / 1.396 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001741/1.404, allocations: 59.33 kB / 1.396 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009353/1.405, allocations: 1.188 MB / 1.397 GB, free: 0.8594 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004024/1.405, allocations: 0.489 MB / 1.397 GB, free: 456 kB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/1.405, allocations: 38.5 kB / 1.397 GB, free: 448 kB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.405, allocations: 377.4 kB / 1.398 GB, free: 92 kB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002468/1.408, allocations: 0.7794 MB / 1.399 GB, free: 15.55 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/1.411, allocations: 1.366 MB / 1.4 GB, free: 14.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002683/1.414, allocations: 0.9624 MB / 1.401 GB, free: 13.64 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/1.414, allocations: 4 kB / 1.401 GB, free: 13.63 MB / 0.698 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007878/1.422, allocations: 2.619 MB / 1.403 GB, free: 11.59 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003965/1.422, allocations: 0.5096 MB / 1.404 GB, free: 10.94 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/1.422, allocations: 12 kB / 1.404 GB, free: 10.93 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/1.423, allocations: 178.1 kB / 1.404 GB, free: 10.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002571/1.426, allocations: 465.7 kB / 1.405 GB, free: 10.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005066/1.431, allocations: 3.588 MB / 1.408 GB, free: 6.645 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002845/1.434, allocations: 215.6 kB / 1.408 GB, free: 6.465 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000268/1.434, allocations: 98.75 kB / 1.408 GB, free: 6.383 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/1.434, allocations: 8 kB / 1.408 GB, free: 6.375 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00676/1.441, allocations: 2.312 MB / 1.411 GB, free: 4.664 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/1.441, allocations: 13.86 kB / 1.411 GB, free: 4.652 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/1.442, allocations: 185.7 kB / 1.411 GB, free: 4.477 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002361/1.445, allocations: 440.8 kB / 1.411 GB, free: 4.059 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004964/1.449, allocations: 3.597 MB / 1.415 GB, free: 396 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00274/1.452, allocations: 207.8 kB / 1.415 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/1.453, allocations: 92.7 kB / 1.415 GB, free: 140 kB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTim1.tNext,weaDat.conTim1.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.onOffController.y,onOffController.y,weaDat.conTim1.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile,conFan.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 218 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001585/1.454, allocations: 0.6332 MB / 1.416 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/1.455, allocations: 248.9 kB / 1.416 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008091/1.463, allocations: 2.466 MB / 1.418 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-05/1.463, allocations: 16 kB / 1.418 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.907e-06/1.463, allocations: 0 / 1.418 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00607/1.469, allocations: 1.827 MB / 1.42 GB, free: 12.27 MB / 0.7136 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 postOpt removeSimpleEquations (simulation): time 0.01185/1.481, allocations: 4.516 MB / 1.424 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/1.481, allocations: 4 kB / 1.424 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002177/1.483, allocations: 359.4 kB / 1.425 GB, free: 8.762 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/1.484, allocations: 160.1 kB / 1.425 GB, free: 8.613 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001642/1.484, allocations: 48.84 kB / 1.425 GB, free: 8.586 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00448/1.489, allocations: 3.022 MB / 1.428 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.489, allocations: 0 / 1.428 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009683/1.499, allocations: 3.254 MB / 1.431 GB, free: 3.152 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/1.5, allocations: 0.5473 MB / 1.432 GB, free: 2.715 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003953/1.5, allocations: 29.12 kB / 1.432 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/1.503, allocations: 211.9 kB / 1.432 GB, free: 2.523 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/1.503, allocations: 126.4 kB / 1.432 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/1.503, allocations: 70.58 kB / 1.432 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002498/1.506, allocations: 1.349 MB / 1.433 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.75e-07/1.506, allocations: 0 / 1.433 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004532/1.51, allocations: 1.453 MB / 1.435 GB, free: 40 kB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (tow.vol.dynBal.U,vol.dynBal.U,conFan.I.y,conFan.D.x) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,weaDat.conTim1.tNext,weaDat.conTim.tNext,onOffController.y) * Number of discrete states: 3 (onOffController.y,weaDat.conTim1.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003091/1.513, allocations: 1.036 MB / 1.436 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01012/1.523, allocations: 3.816 MB / 1.44 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.523, allocations: 3.5 kB / 1.44 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.003344/1.527, allocations: 1.211 MB / 1.441 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00589/1.533, allocations: 1.058 MB / 1.442 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/1.545, allocations: 5.811 MB / 1.447 GB, free: 5.082 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002029/1.547, allocations: 1.768 MB / 1.449 GB, free: 3.332 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.004707/1.552, allocations: 0.7608 MB / 1.45 GB, free: 2.566 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009341/1.553, allocations: 244 kB / 1.45 GB, free: 2.344 MB / 0.7292 GB Notification: Performance of SimCode: time 1.618e-06/1.553, allocations: 0 / 1.45 GB, free: 2.344 MB / 0.7292 GB Notification: Performance of Templates: time 0.1153/1.668, allocations: 49.44 MB / 1.498 GB, free: 1.605 MB / 0.7761 GB