Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009025/0.009029, allocations: 108 kB / 15.06 MB, free: 6.043 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.001116/0.001116, allocations: 185.6 kB / 15.95 MB, free: 5.957 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 1.856/1.856, allocations: 194.5 MB / 211.3 MB, free: 11.04 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.468/2.468, allocations: 236.2 MB / 492.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004666/0.0004669, allocations: 12 kB / 0.587 GB, free: 2.172 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5425/0.543, allocations: 98.69 MB / 0.6833 GB, free: 16.87 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.001599/0.5446, allocations: 1.232 MB / 0.6845 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0005041/0.5451, allocations: 237.4 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.839e-05/0.5452, allocations: 2.25 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.407e-05/0.5453, allocations: 7.172 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.5454, allocations: 20.28 kB / 0.6848 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.5455, allocations: 36.8 kB / 0.6848 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.5457, allocations: 70.47 kB / 0.6849 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.5458, allocations: 24.59 kB / 0.6849 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 6.876e-05/0.5459, allocations: 38.41 kB / 0.685 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.546, allocations: 42.05 kB / 0.685 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.546, allocations: 8.125 kB / 0.685 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.955e-05/0.546, allocations: 8.344 kB / 0.685 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.5461, allocations: 18.53 kB / 0.685 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.5461, allocations: 47.25 kB / 0.6851 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.5463, allocations: 79.42 kB / 0.6852 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.778e-06/0.5463, allocations: 0 / 0.6852 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.953e-06/0.5463, allocations: 0 / 0.6852 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.5463, allocations: 0 / 0.6852 GB, free: 15.58 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006181/0.5469, allocations: 432.7 kB / 0.6856 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.547, allocations: 9.5 kB / 0.6856 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.5471, allocations: 15.09 kB / 0.6856 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.5472, allocations: 184.7 kB / 0.6858 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.5472, allocations: 5.156 kB / 0.6858 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.5473, allocations: 12.19 kB / 0.6858 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.5475, allocations: 95.22 kB / 0.6859 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.5475, allocations: 0 / 0.6859 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.5475, allocations: 6.016 kB / 0.6859 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.93e-06/0.5476, allocations: 1.438 kB / 0.6859 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.5477, allocations: 63.72 kB / 0.6859 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006472/0.5484, allocations: 390.4 kB / 0.6863 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.5486, allocations: 86.62 kB / 0.6864 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.5487, allocations: 1.469 kB / 0.6864 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.5489, allocations: 101.7 kB / 0.6865 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=14): time 2.956e-06/0.5489, allocations: 7.938 kB / 0.6865 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14): time 0.0004018/0.5493, allocations: 141.2 kB / 0.6866 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.5494, allocations: 58.73 kB / 0.6867 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.5495, allocations: 156 kB / 0.6868 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.5496, allocations: 29.7 kB / 0.6869 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.5496, allocations: 104.6 kB / 0.687 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.5497, allocations: 29.72 kB / 0.687 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-06/0.5497, allocations: 4 kB / 0.687 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.116e-05/0.5498, allocations: 326.3 kB / 0.6873 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.49e-05/0.5499, allocations: 25.89 kB / 0.6873 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.55, allocations: 66.3 kB / 0.6874 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.349e-05/0.5501, allocations: 35.16 kB / 0.6874 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.214e-06/0.5501, allocations: 4.922 kB / 0.6874 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002627/0.5504, allocations: 126.4 kB / 0.6876 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.5504, allocations: 5.438 kB / 0.6876 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.523e-06/0.5504, allocations: 2.016 kB / 0.6876 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.5504, allocations: 1.344 kB / 0.6876 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.5506, allocations: 22.02 kB / 0.6876 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.675e-06/0.5506, allocations: 2.312 kB / 0.6876 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.5508, allocations: 28.78 kB / 0.6876 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.5508, allocations: 10.2 kB / 0.6876 GB, free: 13.52 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.5509, allocations: 121.2 kB / 0.6877 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.5509, allocations: 17.91 kB / 0.6878 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.551, allocations: 16.77 kB / 0.6878 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.551, allocations: 2.375 kB / 0.6878 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.218e-06/0.551, allocations: 0 / 0.6878 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.487e-06/0.551, allocations: 6.547 kB / 0.6878 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.5513, allocations: 221.6 kB / 0.688 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.635e-06/0.5513, allocations: 0.6562 kB / 0.688 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.603e-05/0.5514, allocations: 17.02 kB / 0.688 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.981e-06/0.5514, allocations: 5.047 kB / 0.688 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.5514, allocations: 1.969 kB / 0.688 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.822e-06/0.5514, allocations: 1.312 kB / 0.688 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5514, allocations: 0 / 0.688 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002814/0.5517, allocations: 145.1 kB / 0.6882 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.929e-05/0.5518, allocations: 92.95 kB / 0.6882 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.5518, allocations: 5.984 kB / 0.6883 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.552, allocations: 29.27 kB / 0.6883 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.5521, allocations: 17.02 kB / 0.6883 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.5521, allocations: 4.266 kB / 0.6883 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 9.323e-05/0.5522, allocations: 119.2 kB / 0.6884 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.9e-07/0.5522, allocations: 0.9062 kB / 0.6884 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003059/0.5525, allocations: 25.34 kB / 0.6884 GB, free: 12.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001166/0.5527, allocations: 115.4 kB / 0.6886 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002517/0.5529, allocations: 80.94 kB / 0.6886 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.463e-06/0.553, allocations: 0.9062 kB / 0.6886 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.5531, allocations: 48.59 kB / 0.6887 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.5534, allocations: 30.62 kB / 0.6887 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000526/0.5539, allocations: 266.9 kB / 0.689 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000149/0.5541, allocations: 0.7135 MB / 0.6897 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.65e-05/0.5542, allocations: 12.14 kB / 0.6897 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.856e-05/0.5542, allocations: 18.73 kB / 0.6897 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of SimCode: time 1.328e-06/0.5542, allocations: 0 / 0.6897 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of Templates: time 0.004922/0.5592, allocations: 1.199 MB / 0.6909 GB, free: 11.65 MB / 0.5261 GB