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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.04/4.04, allocations: 432.6 MB / 445.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.433e-05/4.45e-05, allocations: 7.234 kB / 0.5383 GB, free: 10.28 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2144, allocations: 98.74 MB / 0.6347 GB, free: 1.891 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2482/0.4627, allocations: 124.7 MB / 0.7565 GB, free: 5.043 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.463, allocations: 71.95 kB / 0.7566 GB, free: 4.973 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006543/0.4696, allocations: 1.595 MB / 0.7581 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4696, allocations: 0 / 0.7581 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.857e-06/0.4696, allocations: 0 / 0.7581 GB, free: 3.371 MB / 0.6355 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.0007398/0.4704, allocations: 421.7 kB / 0.7585 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.4705, allocations: 8.031 kB / 0.7585 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.73e-05/0.4705, allocations: 42.55 kB / 0.7586 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.4706, allocations: 15.81 kB / 0.7586 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.4708, allocations: 185.4 kB / 0.7588 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.4708, allocations: 16.19 kB / 0.7588 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.4708, allocations: 11.98 kB / 0.7588 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.4711, allocations: 93.05 kB / 0.7589 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4711, allocations: 0 / 0.7589 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.4712, allocations: 0 / 0.7589 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.4712, allocations: 4 kB / 0.7589 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.4714, allocations: 56.5 kB / 0.7589 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007673/0.4721, allocations: 397.3 kB / 0.7593 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.4724, allocations: 82.55 kB / 0.7594 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.885e-05/0.4725, allocations: 36.86 kB / 0.7594 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.4725, allocations: 0 / 0.7594 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.4728, allocations: 95.53 kB / 0.7595 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 2.395e-06/0.4728, allocations: 4 kB / 0.7595 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0003328/0.4731, allocations: 109.6 kB / 0.7596 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.4732, allocations: 51.41 kB / 0.7597 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.4734, allocations: 151.7 kB / 0.7598 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.4734, allocations: 33.7 kB / 0.7599 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/0.4735, allocations: 112.2 kB / 0.76 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.4736, allocations: 23.7 kB / 0.76 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.4736, allocations: 4 kB / 0.76 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4737, allocations: 322.8 kB / 0.7603 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.718e-05/0.4738, allocations: 24 kB / 0.7603 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.4739, allocations: 59.36 kB / 0.7604 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.879e-05/0.4741, allocations: 32.12 kB / 0.7604 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4741, allocations: 0 / 0.7604 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00029/0.4744, allocations: 125.4 kB / 0.7605 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4744, allocations: 4 kB / 0.7605 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.4744, allocations: 4 kB / 0.7605 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.4744, allocations: 0 / 0.7605 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.4746, allocations: 19.92 kB / 0.7606 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4746, allocations: 8.094 kB / 0.7606 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.4749, allocations: 27.89 kB / 0.7606 GB, free: 0.6055 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.4749, allocations: 7.938 kB / 0.7606 GB, free: 0.5977 MB / 0.6355 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 () * 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.0001062/0.475, allocations: 117 kB / 0.7607 GB, free: 488 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.475, allocations: 19.78 kB / 0.7607 GB, free: 468 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.472e-05/0.4751, allocations: 20.75 kB / 0.7607 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4751, allocations: 0 / 0.7607 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4751, allocations: 4 kB / 0.7607 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.4752, allocations: 0 / 0.7607 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.4754, allocations: 217.6 kB / 0.761 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4755, allocations: 0 / 0.761 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.938e-05/0.4756, allocations: 8 kB / 0.761 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4756, allocations: 0 / 0.761 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.4756, allocations: 11.94 kB / 0.761 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.4756, allocations: 0 / 0.761 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4756, allocations: 0 / 0.761 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/0.476, allocations: 148.9 kB / 0.7611 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.476, allocations: 85.02 kB / 0.7612 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.4761, allocations: 0 / 0.7612 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.4763, allocations: 31.88 kB / 0.7612 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.626e-05/0.4764, allocations: 15.97 kB / 0.7612 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.4764, allocations: 12 kB / 0.7613 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001155/0.4766, allocations: 122.2 kB / 0.7614 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.7e-07/0.4766, allocations: 0 / 0.7614 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002722/0.4768, allocations: 23.94 kB / 0.7614 GB, free: 15.69 MB / 0.6511 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 () * 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.0006621/0.4775, allocations: 0.6904 MB / 0.7621 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002713/0.4778, allocations: 83.92 kB / 0.7621 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4778, allocations: 3.938 kB / 0.7622 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.478, allocations: 36.62 kB / 0.7622 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.4783, allocations: 27.94 kB / 0.7622 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006514/0.479, allocations: 211.5 kB / 0.7624 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.4793, allocations: 0.7087 MB / 0.7631 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.244e-05/0.4794, allocations: 13.2 kB / 0.7631 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.4795, allocations: 39.42 kB / 0.7632 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of SimCode: time 7.82e-07/0.4795, allocations: 0 / 0.7632 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.5021, allocations: 2.49 MB / 0.7656 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003528/0.5025, allocations: 170.7 kB / 0.7658 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/2.829, allocations: 0 / 0.7658 GB, free: 11.15 MB / 0.6511 GB