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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 103.9 kB / 16.35 MB, free: 5.879 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.001503/0.001504, allocations: 195.2 kB / 17.29 MB, free: 5.516 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.488/1.488, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.836/1.836, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001869/0.001869, allocations: 71.89 kB / 0.6729 GB, free: 5.82 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2578, allocations: 114.6 MB / 0.7848 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.002484/0.2603, allocations: 0.8452 MB / 0.7856 GB, free: 2.301 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002002/0.2624, allocations: 1.285 MB / 0.7869 GB, free: 1 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.149e-05/0.2625, allocations: 3.938 kB / 0.7869 GB, free: 0.9961 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 5.604e-05/0.2626, allocations: 11.86 kB / 0.7869 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.719e-05/0.2627, allocations: 19.8 kB / 0.7869 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009789/0.2637, allocations: 335.2 kB / 0.7872 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004031/0.2641, allocations: 303.5 kB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2642, allocations: 37.44 kB / 0.7875 GB, free: 320 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.2644, allocations: 119.7 kB / 0.7877 GB, free: 200 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.2647, allocations: 111.6 kB / 0.7878 GB, free: 88 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.879e-05/0.2647, allocations: 28 kB / 0.7878 GB, free: 60 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2648, allocations: 35.98 kB / 0.7878 GB, free: 24 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.4692/0.7341, allocations: 25.91 kB / 0.7879 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002517/0.7344, allocations: 98.38 kB / 0.7879 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003756/0.7347, allocations: 261 kB / 0.7882 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.7348, allocations: 5.766 kB / 0.7882 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.094e-06/0.7348, allocations: 2.625 kB / 0.7882 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.7348, allocations: 0.5938 kB / 0.7882 GB, free: 46.95 MB / 0.6544 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.0005976/0.7354, allocations: 0.5229 MB / 0.7887 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.7354, allocations: 10.59 kB / 0.7887 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.213e-05/0.7355, allocations: 22.47 kB / 0.7887 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.284e-05/0.7356, allocations: 180 kB / 0.7889 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.7357, allocations: 15.64 kB / 0.7889 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.7357, allocations: 21.66 kB / 0.789 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001591/0.7359, allocations: 103.7 kB / 0.7891 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.7359, allocations: 0 / 0.7891 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.7359, allocations: 1.438 kB / 0.7891 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.7359, allocations: 2.625 kB / 0.7891 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.166e-05/0.736, allocations: 46.95 kB / 0.7891 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005855/0.7366, allocations: 0.4884 MB / 0.7896 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.7368, allocations: 74.06 kB / 0.7896 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.986e-05/0.7369, allocations: 30.06 kB / 0.7897 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 7.044e-06/0.7369, allocations: 0 / 0.7897 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.7371, allocations: 113 kB / 0.7898 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=14): time 1.893e-06/0.7371, allocations: 0 / 0.7898 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14): time 0.000348/0.7375, allocations: 179.9 kB / 0.79 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.7375, allocations: 53.05 kB / 0.79 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.7377, allocations: 170.7 kB / 0.7902 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.7377, allocations: 34.67 kB / 0.7902 GB, free: 45.63 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.7378, allocations: 110.6 kB / 0.7903 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.7378, allocations: 22.48 kB / 0.7903 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.7379, allocations: 77.08 kB / 0.7904 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.419e-05/0.738, allocations: 325.3 kB / 0.7907 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.7382, allocations: 95.48 kB / 0.7908 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.7384, allocations: 144.6 kB / 0.7909 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.7386, allocations: 255.6 kB / 0.7912 GB, free: 45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.7386, allocations: 0 / 0.7912 GB, free: 45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005505/0.7392, allocations: 407.2 kB / 0.7916 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.709e-05/0.7392, allocations: 96.17 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.7393, allocations: 4.406 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.7393, allocations: 9.094 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.699e-05/0.7393, allocations: 14.84 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.7393, allocations: 3.375 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.7398, allocations: 84.2 kB / 0.7918 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.7398, allocations: 22.91 kB / 0.7918 GB, free: 44.76 MB / 0.6544 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.0001029/0.74, allocations: 135.5 kB / 0.7919 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.74, allocations: 9.219 kB / 0.7919 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.62e-05/0.74, allocations: 20.91 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.74, allocations: 2.656 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.74, allocations: 0 / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.74, allocations: 5.797 kB / 0.792 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.7402, allocations: 226.4 kB / 0.7922 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.7402, allocations: 0.7812 kB / 0.7922 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.7402, allocations: 9.531 kB / 0.7922 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.7402, allocations: 0.75 kB / 0.7922 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.7402, allocations: 9.844 kB / 0.7922 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.267e-06/0.7403, allocations: 6.906 kB / 0.7922 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.7403, allocations: 0 / 0.7922 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.7405, allocations: 156.3 kB / 0.7924 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.647e-05/0.7405, allocations: 87.3 kB / 0.7924 GB, free: 44.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.7405, allocations: 7.984 kB / 0.7924 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.35e-05/0.7406, allocations: 6.5 kB / 0.7925 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.7406, allocations: 11.27 kB / 0.7925 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.7406, allocations: 3.234 kB / 0.7925 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.622e-05/0.7407, allocations: 126.1 kB / 0.7926 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7407, allocations: 0 / 0.7926 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002601/0.7409, allocations: 47.94 kB / 0.7926 GB, free: 44.19 MB / 0.6544 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.0001432/0.7411, allocations: 115.7 kB / 0.7927 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004282/0.7415, allocations: 387.2 kB / 0.7931 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7415, allocations: 0 / 0.7931 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.359e-05/0.7416, allocations: 51.88 kB / 0.7932 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.7419, allocations: 25.31 kB / 0.7932 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003742/0.7423, allocations: 244.9 kB / 0.7934 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.7424, allocations: 0.7082 MB / 0.7941 GB, free: 43.06 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.733e-05/0.7424, allocations: 14.33 kB / 0.7941 GB, free: 43.06 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.566e-05/0.7425, allocations: 14.34 kB / 0.7941 GB, free: 43.06 MB / 0.6544 GB Notification: Performance of SimCode: time 3.3e-07/0.7425, allocations: 2.438 kB / 0.7941 GB, free: 43.06 MB / 0.6544 GB Notification: Performance of Templates: time 0.005272/0.7477, allocations: 2.796 MB / 0.7969 GB, free: 42.91 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)