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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.128/4.128, allocations: 433.2 MB / 440.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.678e-05/2.683e-05, allocations: 6.594 kB / 0.5325 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2214, allocations: 98.73 MB / 0.6289 GB, free: 9.074 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.4461, allocations: 124 MB / 0.75 GB, free: 12.9 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.4463, allocations: 71.95 kB / 0.7501 GB, free: 12.83 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006853/0.4532, allocations: 1.583 MB / 0.7516 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.146e-06/0.4533, allocations: 0 / 0.7516 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.36e-05/0.4533, allocations: 192 / 0.7516 GB, free: 11.24 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.0008277/0.4541, allocations: 431.7 kB / 0.752 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.4542, allocations: 8.031 kB / 0.7521 GB, free: 10.76 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.324e-05/0.4543, allocations: 19.77 kB / 0.7521 GB, free: 10.74 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.4545, allocations: 179 kB / 0.7522 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.4545, allocations: 4 kB / 0.7522 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.743e-05/0.4545, allocations: 8 kB / 0.7523 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000225/0.4548, allocations: 48.38 kB / 0.7523 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.455, allocations: 84.8 kB / 0.7524 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.4551, allocations: 3.984 kB / 0.7524 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.4551, allocations: 0 / 0.7524 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.4551, allocations: 4 kB / 0.7524 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008001/0.4559, allocations: 353.6 kB / 0.7527 GB, free: 9.988 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.4561, allocations: 74.73 kB / 0.7528 GB, free: 9.906 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.877e-05/0.4562, allocations: 36.75 kB / 0.7528 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.4563, allocations: 0 / 0.7528 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.4565, allocations: 99.3 kB / 0.7529 GB, free: 9.758 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 2.264e-06/0.4565, allocations: 0 / 0.7529 GB, free: 9.758 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0003176/0.4568, allocations: 101.6 kB / 0.753 GB, free: 9.652 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.4569, allocations: 59.39 kB / 0.7531 GB, free: 9.582 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.4571, allocations: 131.4 kB / 0.7532 GB, free: 9.449 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.4571, allocations: 25.7 kB / 0.7532 GB, free: 9.418 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.493e-05/0.4572, allocations: 112 kB / 0.7533 GB, free: 9.305 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.4572, allocations: 27.62 kB / 0.7534 GB, free: 9.277 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.108e-05/0.4573, allocations: 4 kB / 0.7534 GB, free: 9.273 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.4574, allocations: 322.8 kB / 0.7537 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.238e-05/0.4575, allocations: 20 kB / 0.7537 GB, free: 8.93 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.4576, allocations: 55.42 kB / 0.7537 GB, free: 8.863 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.902e-05/0.4577, allocations: 36.05 kB / 0.7538 GB, free: 8.828 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4577, allocations: 0 / 0.7538 GB, free: 8.828 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000258/0.458, allocations: 105.5 kB / 0.7539 GB, free: 8.719 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.4581, allocations: 11.95 kB / 0.7539 GB, free: 8.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.4581, allocations: 4 kB / 0.7539 GB, free: 8.703 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.4581, allocations: 0 / 0.7539 GB, free: 8.703 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.4582, allocations: 15.98 kB / 0.7539 GB, free: 8.688 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.4583, allocations: 4 kB / 0.7539 GB, free: 8.684 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.4585, allocations: 35.86 kB / 0.754 GB, free: 8.648 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.4585, allocations: 4 kB / 0.754 GB, free: 8.645 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.0001166/0.4587, allocations: 116.8 kB / 0.7541 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002358/0.4589, allocations: 101.6 kB / 0.7542 GB, free: 8.418 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.4589, allocations: 11.86 kB / 0.7542 GB, free: 8.406 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.125e-05/0.459, allocations: 16.73 kB / 0.7542 GB, free: 8.395 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.459, allocations: 0 / 0.7542 GB, free: 8.395 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.459, allocations: 7.938 kB / 0.7542 GB, free: 8.387 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.4591, allocations: 0 / 0.7542 GB, free: 8.387 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.4593, allocations: 186.2 kB / 0.7544 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.4593, allocations: 0 / 0.7544 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.118e-05/0.4594, allocations: 12 kB / 0.7544 GB, free: 8.156 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.4594, allocations: 3.953 kB / 0.7544 GB, free: 8.152 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.4595, allocations: 0 / 0.7544 GB, free: 8.152 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.4595, allocations: 0 / 0.7544 GB, free: 8.152 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/0.4595, allocations: 3.984 kB / 0.7544 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.4598, allocations: 136.9 kB / 0.7545 GB, free: 7.996 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.089e-05/0.4599, allocations: 89.02 kB / 0.7546 GB, free: 7.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.4599, allocations: 3.953 kB / 0.7546 GB, free: 7.887 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.4601, allocations: 23.97 kB / 0.7546 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/0.4602, allocations: 15.86 kB / 0.7547 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.4602, allocations: 8 kB / 0.7547 GB, free: 7.84 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.955e-05/0.4603, allocations: 109.6 kB / 0.7548 GB, free: 7.734 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4603, allocations: 0 / 0.7548 GB, free: 7.734 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002875/0.4606, allocations: 23.94 kB / 0.7548 GB, free: 7.711 MB / 0.6355 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.0005799/0.4612, allocations: 0.672 MB / 0.7554 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000229/0.4614, allocations: 77.05 kB / 0.7555 GB, free: 6.934 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4615, allocations: 0 / 0.7555 GB, free: 6.934 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.4616, allocations: 43.94 kB / 0.7556 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.4619, allocations: 23.94 kB / 0.7556 GB, free: 6.867 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006072/0.4626, allocations: 182.9 kB / 0.7558 GB, free: 6.652 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.4629, allocations: 0.7121 MB / 0.7565 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.387e-05/0.463, allocations: 8.781 kB / 0.7565 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.184e-05/0.4631, allocations: 39.42 kB / 0.7565 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of SimCode: time 7.42e-07/0.4631, allocations: 0 / 0.7565 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.498, allocations: 2.052 MB / 0.7585 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003094/0.4984, allocations: 146.4 kB / 0.7586 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/3.186, allocations: 3.938 kB / 0.7586 GB, free: 3.641 MB / 0.6355 GB