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.00105/0.00105, allocations: 107.3 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009989/0.000999, allocations: 189.2 kB / 16.25 MB, free: 6.145 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.289/1.289, allocations: 205.1 MB / 222.1 MB, free: 4.66 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.633/1.633, allocations: 292.3 MB / 0.5486 GB, free: 13.62 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.001708/0.001708, allocations: 65.5 kB / 0.6711 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2425, allocations: 114.6 MB / 0.783 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.002215/0.2448, allocations: 0.904 MB / 0.7839 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001635/0.2465, allocations: 1.281 MB / 0.7851 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.493e-05/0.2466, allocations: 7.938 kB / 0.7851 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.484e-05/0.2466, allocations: 3.938 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.792e-05/0.2467, allocations: 15.84 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009458/0.2477, allocations: 300.5 kB / 0.7854 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000373/0.2481, allocations: 303.5 kB / 0.7857 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.2482, allocations: 41.42 kB / 0.7858 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.2484, allocations: 115.7 kB / 0.7859 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.2486, allocations: 95.64 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.321e-05/0.2486, allocations: 24 kB / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.2487, allocations: 39.97 kB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.459e-05/0.2488, allocations: 27.92 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.2489, allocations: 103.7 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.2493, allocations: 267.5 kB / 0.7864 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2493, allocations: 0 / 0.7864 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.164e-06/0.2493, allocations: 0 / 0.7864 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.2493, allocations: 0 / 0.7864 GB, free: 10.26 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.0007162/0.25, allocations: 0.5196 MB / 0.7869 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.2501, allocations: 12.03 kB / 0.7869 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.229e-05/0.2501, allocations: 42.73 kB / 0.787 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.611e-05/0.2502, allocations: 24.75 kB / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.2503, allocations: 180.7 kB / 0.7872 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.2504, allocations: 16.36 kB / 0.7872 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.976e-05/0.2504, allocations: 24.38 kB / 0.7872 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.2506, allocations: 97.55 kB / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2506, allocations: 0 / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2506, allocations: 0 / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.2507, allocations: 3.984 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.998e-05/0.2508, allocations: 55.91 kB / 0.7874 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006755/0.2514, allocations: 492.2 kB / 0.7878 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/0.2517, allocations: 74.56 kB / 0.7879 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.533e-05/0.2517, allocations: 28.91 kB / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.2518, allocations: 0 / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.2519, allocations: 123.3 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.2519, allocations: 0 / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.00037/0.2523, allocations: 180.4 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.2524, allocations: 51.41 kB / 0.7883 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.2525, allocations: 169 kB / 0.7884 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.2526, allocations: 33.7 kB / 0.7885 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.192e-05/0.2526, allocations: 112 kB / 0.7886 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.2527, allocations: 35.62 kB / 0.7886 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.2528, allocations: 77.67 kB / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.253, allocations: 318.8 kB / 0.789 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.2532, allocations: 99.94 kB / 0.7891 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.2534, allocations: 148.9 kB / 0.7892 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.2537, allocations: 249.4 kB / 0.7894 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2537, allocations: 0 / 0.7894 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006162/0.2543, allocations: 402.4 kB / 0.7898 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.557e-05/0.2544, allocations: 101.1 kB / 0.7899 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.2544, allocations: 7.938 kB / 0.7899 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2544, allocations: 0 / 0.7899 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.266e-05/0.2545, allocations: 15.98 kB / 0.79 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.2545, allocations: 0 / 0.79 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/0.255, allocations: 91.86 kB / 0.79 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.2551, allocations: 19.98 kB / 0.7901 GB, free: 6.18 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.0001255/0.2552, allocations: 129.8 kB / 0.7902 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.2552, allocations: 11.91 kB / 0.7902 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.308e-05/0.2553, allocations: 16.78 kB / 0.7902 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2553, allocations: 7.984 kB / 0.7902 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2553, allocations: 3.938 kB / 0.7902 GB, free: 6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2553, allocations: 4 kB / 0.7902 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.2555, allocations: 217.5 kB / 0.7904 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.2555, allocations: 4 kB / 0.7904 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.765e-05/0.2556, allocations: 11.98 kB / 0.7904 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.2556, allocations: 3.938 kB / 0.7905 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.2556, allocations: 7.938 kB / 0.7905 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2556, allocations: 7.938 kB / 0.7905 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2556, allocations: 0 / 0.7905 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.2558, allocations: 161 kB / 0.7906 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.2559, allocations: 92.86 kB / 0.7907 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.2559, allocations: 3.938 kB / 0.7907 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.64e-05/0.256, allocations: 7.984 kB / 0.7907 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.256, allocations: 11.98 kB / 0.7907 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.256, allocations: 8 kB / 0.7907 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000101/0.2561, allocations: 113 kB / 0.7908 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.3e-07/0.2561, allocations: 0 / 0.7908 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002804/0.2564, allocations: 48 kB / 0.7909 GB, free: 5.227 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.0005884/0.257, allocations: 0.7137 MB / 0.7916 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005142/0.2575, allocations: 389.2 kB / 0.792 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2576, allocations: 0 / 0.792 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.121e-05/0.2576, allocations: 52.3 kB / 0.792 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.2579, allocations: 34.72 kB / 0.792 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.2605, allocations: 2.255 MB / 0.7942 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.2608, allocations: 0.7045 MB / 0.7949 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.264e-05/0.2609, allocations: 20.58 kB / 0.795 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.328e-05/0.2609, allocations: 39.42 kB / 0.795 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2609, allocations: 0 / 0.795 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01553/0.2765, allocations: 4.095 MB / 0.799 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.2767, allocations: 216 kB / 0.7992 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.01, allocations: 4 kB / 0.7992 GB, free: 12.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --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)