Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01015/0.01015, allocations: 89.02 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001234/0.001234, allocations: 176.4 kB / 15.93 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.091/2.091, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.326/2.326, allocations: 252.8 MB / 0.511 GB, free: 8.332 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006416/0.0006419, allocations: 13.66 kB / 0.6244 GB, free: 21.24 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2249, allocations: 106.2 MB / 0.7281 GB, free: 8.113 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.002097/0.227, allocations: 1.248 MB / 0.7293 GB, free: 6.852 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0006279/0.2277, allocations: 244.2 kB / 0.7295 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.908e-05/0.2278, allocations: 0 / 0.7295 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 3.174e-05/0.2278, allocations: 7.922 kB / 0.7295 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.228, allocations: 23.91 kB / 0.7296 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.2282, allocations: 31.95 kB / 0.7296 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.2283, allocations: 71.86 kB / 0.7297 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.2285, allocations: 29.59 kB / 0.7297 GB, free: 6.438 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 7.98e-05/0.2286, allocations: 35.86 kB / 0.7297 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 9.331e-05/0.2287, allocations: 39.77 kB / 0.7298 GB, free: 6.363 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.2287, allocations: 4 kB / 0.7298 GB, free: 6.359 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 2.27e-05/0.2288, allocations: 8 kB / 0.7298 GB, free: 6.352 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.2288, allocations: 19.92 kB / 0.7298 GB, free: 6.332 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.49e-05/0.2289, allocations: 45.62 kB / 0.7298 GB, free: 6.281 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.229, allocations: 80.03 kB / 0.7299 GB, free: 6.203 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.229, allocations: 4 kB / 0.7299 GB, free: 6.199 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.843e-06/0.229, allocations: 0 / 0.7299 GB, free: 6.199 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.2291, allocations: 0 / 0.7299 GB, free: 6.199 MB / 0.5573 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.0009706/0.23, allocations: 427.1 kB / 0.7303 GB, free: 5.734 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.2301, allocations: 8.031 kB / 0.7303 GB, free: 5.727 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.91e-05/0.2302, allocations: 42.55 kB / 0.7304 GB, free: 5.676 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.2303, allocations: 19.86 kB / 0.7304 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.2304, allocations: 182.8 kB / 0.7306 GB, free: 5.438 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.2305, allocations: 8.188 kB / 0.7306 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.2305, allocations: 19.94 kB / 0.7306 GB, free: 5.41 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.2308, allocations: 91.14 kB / 0.7307 GB, free: 5.316 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2308, allocations: 3.938 kB / 0.7307 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.2308, allocations: 0 / 0.7307 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.2309, allocations: 4 kB / 0.7307 GB, free: 5.309 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.2311, allocations: 68.42 kB / 0.7308 GB, free: 5.242 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007641/0.2319, allocations: 397.3 kB / 0.7311 GB, free: 4.805 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.2321, allocations: 78.59 kB / 0.7312 GB, free: 4.719 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.2322, allocations: 0 / 0.7312 GB, free: 4.719 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.2324, allocations: 99.53 kB / 0.7313 GB, free: 4.609 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=14): time 2.224e-06/0.2325, allocations: 0 / 0.7313 GB, free: 4.609 MB / 0.5573 GB Notification: Performance of matching and sorting (n=14): time 0.0004611/0.2329, allocations: 149.5 kB / 0.7314 GB, free: 4.457 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.233, allocations: 51.41 kB / 0.7315 GB, free: 4.395 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.2332, allocations: 160.8 kB / 0.7316 GB, free: 4.227 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.2332, allocations: 29.7 kB / 0.7317 GB, free: 4.191 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 7.386e-05/0.2333, allocations: 100.1 kB / 0.7318 GB, free: 4.09 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.378e-05/0.2334, allocations: 31.61 kB / 0.7318 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.2334, allocations: 0 / 0.7318 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2335, allocations: 330.8 kB / 0.7321 GB, free: 3.727 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.757e-05/0.2336, allocations: 27.98 kB / 0.7321 GB, free: 3.699 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.2338, allocations: 55.36 kB / 0.7322 GB, free: 3.633 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.561e-05/0.2339, allocations: 28.67 kB / 0.7322 GB, free: 3.605 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.2339, allocations: 0 / 0.7322 GB, free: 3.605 MB / 0.5573 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003061/0.2342, allocations: 141.4 kB / 0.7324 GB, free: 3.461 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.2342, allocations: 4 kB / 0.7324 GB, free: 3.457 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2343, allocations: 0 / 0.7324 GB, free: 3.457 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2343, allocations: 4 kB / 0.7324 GB, free: 3.453 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.2344, allocations: 23.92 kB / 0.7324 GB, free: 3.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2345, allocations: 0 / 0.7324 GB, free: 3.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.2347, allocations: 28.02 kB / 0.7324 GB, free: 3.402 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.2347, allocations: 8 kB / 0.7324 GB, free: 3.395 MB / 0.5573 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.0001298/0.2349, allocations: 125.8 kB / 0.7325 GB, free: 3.262 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.371e-05/0.2349, allocations: 19.8 kB / 0.7326 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.235, allocations: 20.78 kB / 0.7326 GB, free: 3.223 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.235, allocations: 0 / 0.7326 GB, free: 3.223 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.235, allocations: 4 kB / 0.7326 GB, free: 3.219 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.235, allocations: 0 / 0.7326 GB, free: 3.219 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.2353, allocations: 217.6 kB / 0.7328 GB, free: 2.957 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2353, allocations: 7.953 kB / 0.7328 GB, free: 2.949 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.938e-05/0.2354, allocations: 8 kB / 0.7328 GB, free: 2.941 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.2354, allocations: 0 / 0.7328 GB, free: 2.941 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.2355, allocations: 7.984 kB / 0.7328 GB, free: 2.934 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.2355, allocations: 3.938 kB / 0.7328 GB, free: 2.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2355, allocations: 4 kB / 0.7328 GB, free: 2.926 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.2358, allocations: 144.9 kB / 0.733 GB, free: 2.766 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/0.2359, allocations: 92.91 kB / 0.733 GB, free: 2.656 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.2359, allocations: 4 kB / 0.7331 GB, free: 2.652 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.2362, allocations: 27.97 kB / 0.7331 GB, free: 2.625 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.417e-05/0.2362, allocations: 15.97 kB / 0.7331 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.2363, allocations: 4 kB / 0.7331 GB, free: 2.605 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001112/0.2364, allocations: 117.2 kB / 0.7332 GB, free: 2.492 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.5e-07/0.2364, allocations: 0 / 0.7332 GB, free: 2.492 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000301/0.2367, allocations: 24 kB / 0.7332 GB, free: 2.469 MB / 0.5573 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.0006443/0.2374, allocations: 0.6912 MB / 0.7339 GB, free: 1.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002953/0.2377, allocations: 87.91 kB / 0.734 GB, free: 1.664 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2377, allocations: 0 / 0.734 GB, free: 1.664 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.2379, allocations: 48.17 kB / 0.734 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.2382, allocations: 19.98 kB / 0.7341 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.24, allocations: 1.202 MB / 0.7352 GB, free: 340 kB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.2403, allocations: 0.7087 MB / 0.7359 GB, free: 15.6 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 8.03e-05/0.2404, allocations: 13.08 kB / 0.7359 GB, free: 15.59 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.2405, allocations: 43.36 kB / 0.736 GB, free: 15.54 MB / 0.573 GB Notification: Performance of SimCode: time 1.102e-06/0.2406, allocations: 4 kB / 0.736 GB, free: 15.54 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.2642, allocations: 2.476 MB / 0.7384 GB, free: 13.18 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003034/0.2646, allocations: 203.5 kB / 0.7386 GB, free: 12.93 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.335/2.6, allocations: 4 kB / 0.7386 GB, free: 12.93 MB / 0.573 GB