Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.131/2.131, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001432/0.001431, allocations: 176 kB / 325.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.249/2.249, allocations: 205.4 MB / 0.5764 GB, free: 21.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001524/0.001524, allocations: 100.8 kB / 0.6809 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004899/0.0004901, allocations: 13.72 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2071, allocations: 106.3 MB / 0.8988 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2236/0.4308, allocations: 131.7 MB / 1.027 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4311, allocations: 75.95 kB / 1.028 GB, free: 13.97 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009179/0.4403, allocations: 1.607 MB / 1.029 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.356e-06/0.4404, allocations: 3.938 kB / 1.029 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.582e-05/0.4404, allocations: 4 kB / 1.029 GB, free: 12.35 MB / 0.6823 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.001307/0.4417, allocations: 440.4 kB / 1.03 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.68e-05/0.4418, allocations: 12.03 kB / 1.03 GB, free: 11.85 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.958e-05/0.4419, allocations: 42.55 kB / 1.03 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.868e-05/0.442, allocations: 7.906 kB / 1.03 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.4423, allocations: 190.8 kB / 1.03 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.4423, allocations: 8.188 kB / 1.03 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.4424, allocations: 12 kB / 1.03 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/0.4428, allocations: 91.09 kB / 1.03 GB, free: 11.45 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.4428, allocations: 3.984 kB / 1.03 GB, free: 11.45 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.4429, allocations: 12 kB / 1.03 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.567e-06/0.4429, allocations: 0 / 1.03 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.4432, allocations: 56.53 kB / 1.03 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.4444, allocations: 393.4 kB / 1.03 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.4448, allocations: 86.66 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.4449, allocations: 3.984 kB / 1.03 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003704/0.4452, allocations: 91.38 kB / 1.03 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 4.068e-06/0.4453, allocations: 0 / 1.03 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.000689/0.446, allocations: 150.6 kB / 1.031 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.4461, allocations: 59.34 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.4464, allocations: 148.4 kB / 1.031 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.4464, allocations: 25.7 kB / 1.031 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.4466, allocations: 104 kB / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.4466, allocations: 27.86 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.789e-05/0.4467, allocations: 8 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4469, allocations: 318.8 kB / 1.031 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.4471, allocations: 39.89 kB / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.4473, allocations: 53.72 kB / 1.031 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.4475, allocations: 29.75 kB / 1.031 GB, free: 9.75 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4475, allocations: 0 / 1.031 GB, free: 9.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000482/0.448, allocations: 125.4 kB / 1.032 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.448, allocations: 12.09 kB / 1.032 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.4481, allocations: 0 / 1.032 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4481, allocations: 0 / 1.032 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.4483, allocations: 16 kB / 1.032 GB, free: 9.594 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.4484, allocations: 4 kB / 1.032 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.4487, allocations: 27.88 kB / 1.032 GB, free: 9.562 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.4488, allocations: 4 kB / 1.032 GB, free: 9.559 MB / 0.6823 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.0003122/0.4491, allocations: 133.6 kB / 1.032 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.707e-05/0.4492, allocations: 15.86 kB / 1.032 GB, free: 9.402 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.953e-05/0.4493, allocations: 20.83 kB / 1.032 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4493, allocations: 0 / 1.032 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4493, allocations: 0 / 1.032 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.4493, allocations: 4 kB / 1.032 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.4497, allocations: 221.5 kB / 1.032 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.4498, allocations: 3.938 kB / 1.032 GB, free: 9.113 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.4499, allocations: 8 kB / 1.032 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.4499, allocations: 4 kB / 1.032 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.45, allocations: 7.953 kB / 1.032 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.45, allocations: 0 / 1.032 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.45, allocations: 3.938 kB / 1.032 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005205/0.4505, allocations: 147.2 kB / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.916e-05/0.4507, allocations: 88.92 kB / 1.032 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.431e-05/0.4507, allocations: 4 kB / 1.032 GB, free: 8.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/0.4511, allocations: 31.92 kB / 1.032 GB, free: 8.789 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.4512, allocations: 11.98 kB / 1.032 GB, free: 8.777 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.4512, allocations: 11.92 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001856/0.4514, allocations: 116.9 kB / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.52e-07/0.4515, allocations: 0 / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005078/0.452, allocations: 24 kB / 1.032 GB, free: 8.629 MB / 0.6823 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.0009678/0.453, allocations: 0.6865 MB / 1.033 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004431/0.4535, allocations: 86.78 kB / 1.033 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.4535, allocations: 0 / 1.033 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.4537, allocations: 47.92 kB / 1.033 GB, free: 7.781 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.4543, allocations: 35.92 kB / 1.033 GB, free: 7.746 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.457, allocations: 1.194 MB / 1.034 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.4575, allocations: 0.7125 MB / 1.035 GB, free: 5.754 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001322/0.4576, allocations: 13.08 kB / 1.035 GB, free: 5.742 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.4578, allocations: 39.42 kB / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of SimCode: time 1.333e-06/0.4578, allocations: 0 / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.485, allocations: 2.476 MB / 1.038 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003291/0.4854, allocations: 187.6 kB / 1.038 GB, free: 3.145 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/2.828, allocations: 3.938 kB / 1.038 GB, free: 3.141 MB / 0.6823 GB