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.001487/0.001487, allocations: 103.5 kB / 16.36 MB, free: 6.305 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.001516/0.001517, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.366/1.366, 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.784/1.784, allocations: 292.3 MB / 0.5496 GB, free: 17.63 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.001561/0.001561, allocations: 67.91 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2473, 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.002222/0.2496, allocations: 0.8535 MB / 0.7856 GB, free: 2.293 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.2512, allocations: 1.285 MB / 0.7869 GB, free: 0.9922 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.987e-05/0.2513, allocations: 4 kB / 0.7869 GB, free: 0.9883 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.371e-05/0.2514, allocations: 11.86 kB / 0.7869 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.42e-05/0.2514, allocations: 11.81 kB / 0.7869 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007973/0.2522, allocations: 332.2 kB / 0.7872 GB, free: 0.6484 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.2526, allocations: 307.5 kB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.2527, allocations: 37.44 kB / 0.7876 GB, free: 316 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.2529, allocations: 119.7 kB / 0.7877 GB, free: 196 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.2531, allocations: 115.6 kB / 0.7878 GB, free: 80 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.51e-05/0.2531, allocations: 24 kB / 0.7878 GB, free: 56 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.814e-05/0.2532, allocations: 35.98 kB / 0.7878 GB, free: 20 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.4255/0.6787, allocations: 29.88 kB / 0.7879 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.679, allocations: 100.5 kB / 0.788 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003946/0.6794, allocations: 265.7 kB / 0.7882 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.6794, allocations: 0 / 0.7882 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6794, allocations: 2.688 kB / 0.7882 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.45e-05/0.6795, allocations: 0 / 0.7882 GB, free: 46.91 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.0006835/0.6802, allocations: 0.5216 MB / 0.7887 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.6802, allocations: 10.44 kB / 0.7887 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.55e-05/0.6803, allocations: 24.84 kB / 0.7888 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.982e-05/0.6804, allocations: 179.4 kB / 0.7889 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.6804, allocations: 16.7 kB / 0.7889 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.6805, allocations: 16.91 kB / 0.789 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.6807, allocations: 100.2 kB / 0.7891 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.6807, allocations: 0 / 0.7891 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.6807, allocations: 12.66 kB / 0.7891 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.6808, allocations: 0 / 0.7891 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.6809, allocations: 48.94 kB / 0.7891 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006669/0.6815, allocations: 492.3 kB / 0.7896 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.6818, allocations: 68.88 kB / 0.7897 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.178e-05/0.6818, allocations: 33.94 kB / 0.7897 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.6819, allocations: 1.219 kB / 0.7897 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.6821, allocations: 111.1 kB / 0.7898 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.6821, allocations: 0 / 0.7898 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14): time 0.0003486/0.6824, allocations: 182.3 kB / 0.79 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.6825, allocations: 57 kB / 0.79 GB, free: 45.72 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.6826, allocations: 171.5 kB / 0.7902 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.6827, allocations: 32.27 kB / 0.7902 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.6828, allocations: 112.2 kB / 0.7903 GB, free: 45.5 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.6828, allocations: 27.7 kB / 0.7904 GB, free: 45.49 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.6829, allocations: 76.06 kB / 0.7904 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.423e-05/0.683, allocations: 320.4 kB / 0.7907 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.6832, allocations: 98.44 kB / 0.7908 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.6834, allocations: 141.1 kB / 0.791 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.6837, allocations: 262.6 kB / 0.7912 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.6837, allocations: 3.5 kB / 0.7912 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005322/0.6842, allocations: 395.6 kB / 0.7916 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.715e-05/0.6843, allocations: 102.5 kB / 0.7917 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.6843, allocations: 2.719 kB / 0.7917 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.6843, allocations: 5.406 kB / 0.7917 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.752e-05/0.6844, allocations: 15.08 kB / 0.7917 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.6844, allocations: 7.406 kB / 0.7917 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004623/0.6849, allocations: 88.8 kB / 0.7918 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-05/0.6849, allocations: 19.69 kB / 0.7918 GB, free: 44.71 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.0001039/0.6851, allocations: 130.2 kB / 0.7919 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.783e-05/0.6851, allocations: 11.78 kB / 0.792 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.123e-05/0.6851, allocations: 22.25 kB / 0.792 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.6851, allocations: 2.281 kB / 0.792 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.6851, allocations: 1.891 kB / 0.792 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.6852, allocations: 2.625 kB / 0.792 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.6853, allocations: 225 kB / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.6853, allocations: 0 / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.054e-05/0.6854, allocations: 7.875 kB / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6854, allocations: 0 / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.6854, allocations: 12.44 kB / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.6854, allocations: 4.422 kB / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.6854, allocations: 0 / 0.7922 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.6856, allocations: 151.7 kB / 0.7924 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.6857, allocations: 93.64 kB / 0.7925 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.6857, allocations: 5.875 kB / 0.7925 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.201e-05/0.6857, allocations: 7.25 kB / 0.7925 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.6858, allocations: 13.97 kB / 0.7925 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.6858, allocations: 6.484 kB / 0.7925 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.439e-05/0.6859, allocations: 116.6 kB / 0.7926 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6859, allocations: 3.938 kB / 0.7926 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002637/0.6862, allocations: 48.94 kB / 0.7926 GB, free: 44.14 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.0001566/0.6863, allocations: 113.5 kB / 0.7928 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000429/0.6868, allocations: 379.3 kB / 0.7931 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6868, allocations: 0.6562 kB / 0.7931 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.296e-05/0.6869, allocations: 64.05 kB / 0.7932 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.6871, allocations: 24.98 kB / 0.7932 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004726/0.6876, allocations: 275.6 kB / 0.7935 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.6878, allocations: 0.7085 MB / 0.7942 GB, free: 42.99 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.6878, allocations: 17.69 kB / 0.7942 GB, free: 42.98 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.6878, allocations: 3.844 kB / 0.7942 GB, free: 42.98 MB / 0.6544 GB Notification: Performance of Templates: time 0.004452/0.6923, allocations: 2.254 MB / 0.7964 GB, free: 42.86 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)