Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.387/1.387, allocations: 252 MB / 267 MB, free: 10.97 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.001121/0.001121, allocations: 180.7 kB / 326.6 MB, free: 2.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.79/1.79, allocations: 205.4 MB / 0.5777 GB, free: 20.29 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.0009197/0.0009197, allocations: 91.69 kB / 0.6823 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003587, allocations: 9.562 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2561, allocations: 106.3 MB / 0.9003 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.001598/0.2577, allocations: 1.252 MB / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004603/0.2582, allocations: 240.2 kB / 0.9018 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.061e-05/0.2583, allocations: 0 / 0.9018 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.201e-05/0.2583, allocations: 7.922 kB / 0.9018 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.865e-05/0.2585, allocations: 11.88 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001661/0.2586, allocations: 27.95 kB / 0.9018 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.2587, allocations: 115.6 kB / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.2589, allocations: 37.47 kB / 0.902 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.68e-05/0.2589, allocations: 31.86 kB / 0.902 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.602e-05/0.259, allocations: 39.78 kB / 0.902 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.2591, allocations: 4 kB / 0.902 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.561e-05/0.2591, allocations: 4 kB / 0.902 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.372e-05/0.2591, allocations: 23.89 kB / 0.9021 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.165e-05/0.2592, allocations: 41.64 kB / 0.9021 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.2593, allocations: 79.83 kB / 0.9022 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2593, allocations: 0 / 0.9022 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.844e-06/0.2593, allocations: 0 / 0.9022 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.2593, allocations: 0 / 0.9022 GB, free: 61.84 MB / 0.6042 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.0005891/0.2599, allocations: 435.3 kB / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.2599, allocations: 8.031 kB / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.26, allocations: 46.48 kB / 0.9027 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.579e-05/0.26, allocations: 15.86 kB / 0.9027 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.2602, allocations: 182.9 kB / 0.9028 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2602, allocations: 12.12 kB / 0.9029 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.2602, allocations: 11.98 kB / 0.9029 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000167/0.2604, allocations: 95.09 kB / 0.903 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2604, allocations: 0 / 0.903 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.2604, allocations: 8 kB / 0.903 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.2605, allocations: 4 kB / 0.903 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.2606, allocations: 56.53 kB / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004743/0.2611, allocations: 393.3 kB / 0.9034 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.2612, allocations: 86.56 kB / 0.9035 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.207e-05/0.2613, allocations: 33.08 kB / 0.9035 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.2613, allocations: 7.938 kB / 0.9035 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.2615, allocations: 95.3 kB / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.2615, allocations: 8 kB / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0002793/0.2618, allocations: 144.2 kB / 0.9038 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.2618, allocations: 55.39 kB / 0.9038 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2619, allocations: 157.5 kB / 0.904 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.262, allocations: 37.62 kB / 0.904 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.287e-05/0.262, allocations: 103.9 kB / 0.9041 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.262, allocations: 31.55 kB / 0.9041 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-06/0.2621, allocations: 0 / 0.9041 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.2621, allocations: 326.8 kB / 0.9044 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.72e-05/0.2622, allocations: 31.98 kB / 0.9045 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.796e-05/0.2622, allocations: 53.45 kB / 0.9045 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.971e-05/0.2623, allocations: 32 kB / 0.9045 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2623, allocations: 3.953 kB / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000147/0.2624, allocations: 129.5 kB / 0.9047 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.2625, allocations: 4 kB / 0.9047 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2625, allocations: 3.938 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2625, allocations: 4 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.241e-05/0.2626, allocations: 12 kB / 0.9047 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2626, allocations: 0 / 0.9047 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.2627, allocations: 31.91 kB / 0.9047 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.2627, allocations: 4 kB / 0.9047 GB, free: 58.99 MB / 0.6042 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 8.191e-05/0.2628, allocations: 129.8 kB / 0.9049 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.65e-05/0.2628, allocations: 19.77 kB / 0.9049 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.2629, allocations: 16.83 kB / 0.9049 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2629, allocations: 7.938 kB / 0.9049 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2629, allocations: 0 / 0.9049 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2629, allocations: 0 / 0.9049 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.2631, allocations: 221.6 kB / 0.9051 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2631, allocations: 3.938 kB / 0.9051 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.2631, allocations: 15.95 kB / 0.9051 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2631, allocations: 0 / 0.9051 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.2631, allocations: 4 kB / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2632, allocations: 0 / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2632, allocations: 0 / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.2633, allocations: 152.8 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.073e-05/0.2634, allocations: 88.95 kB / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.2634, allocations: 7.953 kB / 0.9054 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.2635, allocations: 27.97 kB / 0.9054 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.392e-05/0.2636, allocations: 15.98 kB / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.2636, allocations: 3.984 kB / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.424e-05/0.2636, allocations: 118.6 kB / 0.9055 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2636, allocations: 0 / 0.9055 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001831/0.2638, allocations: 24 kB / 0.9055 GB, free: 58.06 MB / 0.6042 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.0003649/0.2642, allocations: 0.6924 MB / 0.9062 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.2644, allocations: 84.78 kB / 0.9063 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2644, allocations: 0 / 0.9063 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.93e-05/0.2644, allocations: 45.55 kB / 0.9063 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.2647, allocations: 36.06 kB / 0.9064 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009156/0.2656, allocations: 0.7492 MB / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.2658, allocations: 0.7087 MB / 0.9078 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.406e-05/0.2658, allocations: 9.078 kB / 0.9078 GB, free: 55.63 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.578e-05/0.2659, allocations: 35.42 kB / 0.9079 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of SimCode: time 4.51e-07/0.2659, allocations: 0 / 0.9079 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01205/0.2779, allocations: 2.507 MB / 0.9103 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/0.2781, allocations: 199.4 kB / 0.9105 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/2.014, allocations: 2.188 kB / 0.9105 GB, free: 53.04 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)