Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01028/0.01028, allocations: 221 kB / 15.17 MB, free: 5.93 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.001088/0.001088, allocations: 176.8 kB / 16.06 MB, free: 5.832 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.465/3.465, allocations: 389.1 MB / 405.9 MB, free: 13.32 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.912/3.912, allocations: 472.3 MB / 0.9018 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.0004698, allocations: 16 kB / 1.008 GB, free: 21.67 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4888/0.4893, allocations: 98.7 MB / 1.104 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.09221/0.5815, allocations: 73.57 MB / 1.176 GB, free: 1.02 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.03777/0.6194, allocations: 20.68 MB / 1.196 GB, free: 12.3 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003423/0.6228, allocations: 95.25 kB / 1.196 GB, free: 12.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.004371/0.6272, allocations: 1.126 MB / 1.197 GB, free: 11.07 MB / 0.6042 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.01162/0.6389, allocations: 3.306 MB / 1.2 GB, free: 7.746 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.01363/0.6525, allocations: 3.942 MB / 1.204 GB, free: 3.809 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.022/0.6746, allocations: 17.4 MB / 1.221 GB, free: 2.355 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008719/0.6833, allocations: 5.169 MB / 1.226 GB, free: 13.13 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009959/0.6933, allocations: 4.455 MB / 1.231 GB, free: 8.656 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009062/0.7024, allocations: 4.571 MB / 1.235 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.001411/0.7039, allocations: 260 kB / 1.235 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005801/0.7097, allocations: 1.33 MB / 1.237 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.002498/0.7122, allocations: 1.214 MB / 1.238 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.002453/0.7147, allocations: 1.108 MB / 1.239 GB, free: 148 kB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.01094/0.7257, allocations: 6.874 MB / 1.246 GB, free: 9.254 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.824e-06/0.7257, allocations: 4 kB / 1.246 GB, free: 9.25 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.605e-06/0.7257, allocations: 0 / 1.246 GB, free: 9.25 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0001622/0.7259, allocations: 0 / 1.246 GB, free: 9.25 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 0.01396/0.7399, allocations: 5.4 MB / 1.251 GB, free: 3.762 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.7399, allocations: 8.031 kB / 1.251 GB, free: 3.754 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00466/0.7446, allocations: 0.8363 MB / 1.252 GB, free: 2.91 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.7584, allocations: 5.054 MB / 1.257 GB, free: 13.78 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/0.7587, allocations: 259.1 kB / 1.257 GB, free: 13.52 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008744/0.7596, allocations: 347.9 kB / 1.257 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.773, allocations: 5.723 MB / 1.263 GB, free: 7.211 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-05/0.7732, allocations: 11.88 kB / 1.263 GB, free: 7.199 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006244/0.7738, allocations: 140 kB / 1.263 GB, free: 7.062 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.953e-05/0.7739, allocations: 88 kB / 1.263 GB, free: 6.977 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/0.7878, allocations: 5.55 MB / 1.269 GB, free: 1.414 MB / 0.6667 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.4982/1.286, allocations: 23.97 MB / 1.292 GB, free: 158.5 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006756/1.293, allocations: 2.792 MB / 1.295 GB, free: 158.1 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004005/1.297, allocations: 1.914 MB / 1.297 GB, free: 157.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01465/1.312, allocations: 7.13 MB / 1.304 GB, free: 153.6 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004029/1.316, allocations: 1.945 MB / 1.305 GB, free: 152.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005395/1.321, allocations: 1.255 MB / 1.307 GB, free: 152 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=154): time 6.813e-06/1.321, allocations: 0 / 1.307 GB, free: 152 MB / 0.6823 GB Notification: Performance of matching and sorting (n=154): time 0.02583/1.347, allocations: 7.617 MB / 1.314 GB, free: 148.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/1.347, allocations: 149.6 kB / 1.314 GB, free: 148 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0075/1.355, allocations: 4.845 MB / 1.319 GB, free: 145 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004892/1.355, allocations: 65.7 kB / 1.319 GB, free: 144.9 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.002152/1.357, allocations: 2.472 MB / 1.321 GB, free: 142.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000705/1.358, allocations: 0.542 MB / 1.322 GB, free: 142 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/1.358, allocations: 56 kB / 1.322 GB, free: 142 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001492/1.358, allocations: 415.3 kB / 1.322 GB, free: 141.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003195/1.362, allocations: 1.664 MB / 1.324 GB, free: 139.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003871/1.365, allocations: 2.892 MB / 1.327 GB, free: 136.5 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003798/1.369, allocations: 2.107 MB / 1.329 GB, free: 134.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.037e-05/1.369, allocations: 8 kB / 1.329 GB, free: 134.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01276/1.382, allocations: 6.022 MB / 1.335 GB, free: 128.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000499/1.383, allocations: 1.1 MB / 1.336 GB, free: 126.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.842e-05/1.383, allocations: 35.98 kB / 1.336 GB, free: 126.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07826/1.461, allocations: 11.88 MB / 1.348 GB, free: 115 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003499/1.465, allocations: 0.663 MB / 1.348 GB, free: 114.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008666/1.473, allocations: 5.04 MB / 1.353 GB, free: 109.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00535/1.479, allocations: 347.8 kB / 1.353 GB, free: 108.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005336/1.479, allocations: 159.9 kB / 1.354 GB, free: 108.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/1.479, allocations: 5.312 kB / 1.354 GB, free: 108.7 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01016/1.489, allocations: 5.373 MB / 1.359 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.798e-05/1.489, allocations: 33.2 kB / 1.359 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07667/1.566, allocations: 11.68 MB / 1.37 GB, free: 91.64 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003616/1.57, allocations: 0.6512 MB / 1.371 GB, free: 90.99 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/1.583, allocations: 8.061 MB / 1.379 GB, free: 82.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004985/1.588, allocations: 327.8 kB / 1.379 GB, free: 82.31 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005431/1.589, allocations: 163.9 kB / 1.379 GB, free: 82.15 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.00304/1.592, allocations: 1.543 MB / 1.381 GB, free: 80.6 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/1.593, allocations: 462.3 kB / 1.381 GB, free: 80.14 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009707/1.602, allocations: 4.867 MB / 1.386 GB, free: 75.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/1.603, allocations: 19.83 kB / 1.386 GB, free: 75.25 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.627e-06/1.603, allocations: 4 kB / 1.386 GB, free: 75.25 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01343/1.616, allocations: 6.412 MB / 1.392 GB, free: 68.58 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 postOpt removeSimpleEquations (simulation): time 0.04587/1.662, allocations: 13.01 MB / 1.405 GB, free: 55.49 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.248e-05/1.662, allocations: 8.016 kB / 1.405 GB, free: 55.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00621/1.668, allocations: 371.5 kB / 1.405 GB, free: 55.12 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1065/1.775, allocations: 11.9 MB / 1.417 GB, free: 43.28 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004212/1.775, allocations: 51.95 kB / 1.417 GB, free: 43.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007317/1.783, allocations: 4.36 MB / 1.421 GB, free: 38.79 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.379e-06/1.783, allocations: 4.094 kB / 1.421 GB, free: 38.79 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02244/1.805, allocations: 9.235 MB / 1.43 GB, free: 29.53 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003098/1.808, allocations: 1.065 MB / 1.431 GB, free: 28.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009483/1.809, allocations: 28 kB / 1.431 GB, free: 28.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003959/1.813, allocations: 279.3 kB / 1.432 GB, free: 28.14 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003848/1.814, allocations: 113.1 kB / 1.432 GB, free: 28.03 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/1.814, allocations: 79.92 kB / 1.432 GB, free: 27.95 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.006368/1.82, allocations: 3.305 MB / 1.435 GB, free: 24.66 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9.83e-07/1.82, allocations: 0 / 1.435 GB, free: 24.66 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.008654/1.829, allocations: 2.707 MB / 1.438 GB, free: 21.98 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001406/1.83, allocations: 0.5298 MB / 1.438 GB, free: 21.53 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.01885/1.849, allocations: 7.568 MB / 1.446 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.849, allocations: 4.656 kB / 1.446 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.006646/1.856, allocations: 2.507 MB / 1.448 GB, free: 11.4 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01396/1.87, allocations: 2.781 MB / 1.451 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/1.89, allocations: 11.41 MB / 1.462 GB, free: 13.21 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004222/1.894, allocations: 3.307 MB / 1.465 GB, free: 9.871 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.007695/1.902, allocations: 1.686 MB / 1.467 GB, free: 8.18 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/1.903, allocations: 347.3 kB / 1.467 GB, free: 7.84 MB / 0.698 GB Notification: Performance of SimCode: time 1.607e-06/1.903, allocations: 4 kB / 1.467 GB, free: 7.836 MB / 0.698 GB Notification: Performance of Templates: time 0.2408/2.144, allocations: 107.4 MB / 1.572 GB, free: 13.66 MB / 0.8073 GB