Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001288, allocations: 195.1 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.829/1.829, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 74.95 kB / 0.6716 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2868, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.00295/0.2898, allocations: 0.8491 MB / 0.7843 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001665/0.2915, allocations: 1.27 MB / 0.7856 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.054e-05/0.2916, allocations: 4 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.906e-05/0.2917, allocations: 11.81 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.2918, allocations: 27.78 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008716/0.2927, allocations: 317 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004493/0.2931, allocations: 311.5 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.2933, allocations: 41.41 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.2935, allocations: 111.8 kB / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.2937, allocations: 103.6 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.2938, allocations: 24 kB / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.488e-05/0.2939, allocations: 43.98 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.501e-05/0.2939, allocations: 19.92 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.2941, allocations: 103.7 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.2945, allocations: 267.4 kB / 0.7869 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2945, allocations: 0 / 0.7869 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.905e-06/0.2945, allocations: 0 / 0.7869 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.2946, allocations: 0 / 0.7869 GB, free: 9.887 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006805/0.2952, allocations: 0.5274 MB / 0.7874 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2953, allocations: 12.03 kB / 0.7874 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.2953, allocations: 42.75 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.884e-05/0.2954, allocations: 28.73 kB / 0.7875 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.2955, allocations: 172.8 kB / 0.7876 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.2956, allocations: 12.38 kB / 0.7877 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.527e-05/0.2956, allocations: 20.38 kB / 0.7877 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.2958, allocations: 101.5 kB / 0.7878 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2958, allocations: 0 / 0.7878 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.2959, allocations: 0 / 0.7878 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.2959, allocations: 8 kB / 0.7878 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.296, allocations: 47.97 kB / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006879/0.2967, allocations: 496.2 kB / 0.7883 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.2969, allocations: 70.61 kB / 0.7884 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.612e-05/0.297, allocations: 28.92 kB / 0.7884 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.297, allocations: 0 / 0.7884 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.2972, allocations: 115.3 kB / 0.7885 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.2972, allocations: 0 / 0.7885 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0003516/0.2976, allocations: 173.4 kB / 0.7887 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.2976, allocations: 59.34 kB / 0.7887 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.2978, allocations: 177.4 kB / 0.7889 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.2978, allocations: 29.7 kB / 0.7889 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.996e-05/0.2979, allocations: 116 kB / 0.789 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.298, allocations: 27.66 kB / 0.7891 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.2981, allocations: 73.67 kB / 0.7891 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002417/0.2984, allocations: 326.8 kB / 0.7894 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.2987, allocations: 91.95 kB / 0.7895 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.2989, allocations: 148.8 kB / 0.7897 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003306/0.2992, allocations: 257.5 kB / 0.7899 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2993, allocations: 4 kB / 0.7899 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000642/0.2999, allocations: 390.4 kB / 0.7903 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.623e-05/0.3, allocations: 101.1 kB / 0.7904 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3, allocations: 7.938 kB / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.3001, allocations: 0 / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.98e-05/0.3001, allocations: 20.12 kB / 0.7904 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3001, allocations: 3.984 kB / 0.7904 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/0.3007, allocations: 87.69 kB / 0.7905 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.92e-05/0.3007, allocations: 19.98 kB / 0.7905 GB, free: 5.812 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.3009, allocations: 137.8 kB / 0.7907 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.01e-05/0.3009, allocations: 11.91 kB / 0.7907 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.982e-05/0.3009, allocations: 16.78 kB / 0.7907 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3009, allocations: 0 / 0.7907 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.301, allocations: 3.938 kB / 0.7907 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.301, allocations: 3.984 kB / 0.7907 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.3012, allocations: 221.5 kB / 0.7909 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3012, allocations: 3.938 kB / 0.7909 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.537e-05/0.3012, allocations: 16 kB / 0.7909 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.3012, allocations: 0 / 0.7909 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.3013, allocations: 15.92 kB / 0.7909 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3013, allocations: 0 / 0.7909 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3013, allocations: 0 / 0.7909 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.3015, allocations: 157 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/0.3016, allocations: 92.86 kB / 0.7912 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.3016, allocations: 7.938 kB / 0.7912 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.954e-05/0.3016, allocations: 0 / 0.7912 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.3017, allocations: 19.92 kB / 0.7912 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.3017, allocations: 8 kB / 0.7912 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.997e-05/0.3018, allocations: 117 kB / 0.7913 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3018, allocations: 0 / 0.7913 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002799/0.3021, allocations: 51.98 kB / 0.7914 GB, free: 4.848 MB / 0.6075 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 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008698/0.303, allocations: 0.7093 MB / 0.7921 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005562/0.3036, allocations: 394 kB / 0.7924 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3036, allocations: 0 / 0.7924 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.3037, allocations: 55.91 kB / 0.7925 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.304, allocations: 23.92 kB / 0.7925 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.3069, allocations: 2.231 MB / 0.7947 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.3071, allocations: 0.7162 MB / 0.7954 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.326e-05/0.3072, allocations: 16.58 kB / 0.7954 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.471e-05/0.3073, allocations: 35.42 kB / 0.7954 GB, free: 472 kB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.3073, allocations: 0 / 0.7954 GB, free: 472 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.3299, allocations: 4.184 MB / 0.7995 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.419, allocations: 6.672 kB / 0.7995 GB, free: 12.38 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)