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.001214/0.00122, allocations: 102.1 kB / 16.29 MB, free: 6.43 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.001267/0.001267, allocations: 184.1 kB / 17.22 MB, free: 5.934 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.735/1.735, allocations: 205.1 MB / 223.1 MB, free: 12.31 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 2.05/2.05, allocations: 292.3 MB / 0.5495 GB, free: 17.52 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.001345/0.001346, allocations: 71.91 kB / 0.6722 GB, free: 6.469 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2694, allocations: 114.6 MB / 0.7841 GB, free: 3.797 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.002215/0.2717, allocations: 0.8443 MB / 0.7849 GB, free: 2.945 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.2734, allocations: 1.285 MB / 0.7862 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.982e-05/0.2735, allocations: 0 / 0.7862 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.25e-05/0.2736, allocations: 11.81 kB / 0.7862 GB, free: 1.633 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.274e-05/0.2737, allocations: 31.78 kB / 0.7862 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008308/0.2745, allocations: 316.1 kB / 0.7865 GB, free: 1.301 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003348/0.2749, allocations: 307.5 kB / 0.7868 GB, free: 1 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.275, allocations: 45.42 kB / 0.7869 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2751, allocations: 111.8 kB / 0.787 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.2754, allocations: 115.6 kB / 0.7871 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/0.2754, allocations: 28 kB / 0.7871 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2755, allocations: 39.98 kB / 0.7871 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.204e-05/0.2756, allocations: 19.92 kB / 0.7872 GB, free: 0.6484 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.2757, allocations: 107.7 kB / 0.7873 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.276, allocations: 263.4 kB / 0.7875 GB, free: 292 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.2761, allocations: 8 kB / 0.7875 GB, free: 284 kB / 0.6544 GB Notification: Performance of FrontEnd: time 2.184e-06/0.2761, allocations: 0 / 0.7875 GB, free: 284 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.2761, allocations: 0 / 0.7875 GB, free: 284 kB / 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.5591/0.8352, allocations: 0.5173 MB / 0.788 GB, free: 49.45 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.8352, allocations: 11.31 kB / 0.788 GB, free: 49.45 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.797e-05/0.8353, allocations: 18.27 kB / 0.788 GB, free: 49.44 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.8355, allocations: 187.4 kB / 0.7882 GB, free: 49.23 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.8355, allocations: 11.17 kB / 0.7882 GB, free: 49.23 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.8356, allocations: 20.62 kB / 0.7883 GB, free: 49.23 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.8358, allocations: 94.75 kB / 0.7883 GB, free: 49.2 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.8358, allocations: 2.25 kB / 0.7883 GB, free: 49.2 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.8358, allocations: 2.906 kB / 0.7884 GB, free: 49.2 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.8358, allocations: 8.625 kB / 0.7884 GB, free: 49.2 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.909e-05/0.8359, allocations: 52.31 kB / 0.7884 GB, free: 49.2 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006871/0.8366, allocations: 497.6 kB / 0.7889 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.8369, allocations: 74.03 kB / 0.789 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.014e-05/0.8369, allocations: 29.25 kB / 0.789 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.837, allocations: 3.969 kB / 0.789 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.8372, allocations: 110.6 kB / 0.7891 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.8372, allocations: 2.719 kB / 0.7891 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14): time 0.0003378/0.8376, allocations: 175.1 kB / 0.7893 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.8376, allocations: 56.97 kB / 0.7893 GB, free: 48.73 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.8377, allocations: 165.1 kB / 0.7895 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.8378, allocations: 35.81 kB / 0.7895 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.879e-05/0.8379, allocations: 104.8 kB / 0.7896 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.8379, allocations: 29.8 kB / 0.7896 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.838, allocations: 76.67 kB / 0.7897 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.8381, allocations: 324.6 kB / 0.79 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.8383, allocations: 94.58 kB / 0.7901 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.8385, allocations: 149 kB / 0.7902 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.8388, allocations: 252.8 kB / 0.7905 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.8388, allocations: 0 / 0.7905 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005833/0.8394, allocations: 405.2 kB / 0.7909 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.439e-05/0.8394, allocations: 97.2 kB / 0.791 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.8394, allocations: 1.25 kB / 0.791 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.8395, allocations: 7.188 kB / 0.791 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.587e-05/0.8395, allocations: 13.28 kB / 0.791 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.8395, allocations: 5.719 kB / 0.791 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.84, allocations: 87.69 kB / 0.7911 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/0.84, allocations: 23.38 kB / 0.7911 GB, free: 47.73 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.0001075/0.8401, allocations: 138.2 kB / 0.7912 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.728e-05/0.8402, allocations: 10.33 kB / 0.7912 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.783e-05/0.8402, allocations: 15.34 kB / 0.7913 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.8402, allocations: 2.625 kB / 0.7913 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.8402, allocations: 0.5 kB / 0.7913 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.8402, allocations: 4.812 kB / 0.7913 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.8404, allocations: 220.2 kB / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8404, allocations: 2.25 kB / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.8404, allocations: 11.06 kB / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.8404, allocations: 3.422 kB / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.8405, allocations: 9.109 kB / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.8405, allocations: 0 / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8405, allocations: 1.344 kB / 0.7915 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.8407, allocations: 167.2 kB / 0.7917 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.451e-05/0.8407, allocations: 87.55 kB / 0.7917 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.8408, allocations: 12.3 kB / 0.7918 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.006e-05/0.8408, allocations: 3.938 kB / 0.7918 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.8409, allocations: 8.062 kB / 0.7918 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.8409, allocations: 9.328 kB / 0.7918 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.038e-05/0.841, allocations: 115.5 kB / 0.7919 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.841, allocations: 0 / 0.7919 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002822/0.8413, allocations: 51.97 kB / 0.7919 GB, free: 47.16 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.0001928/0.8415, allocations: 114.8 kB / 0.792 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004656/0.8419, allocations: 386.2 kB / 0.7924 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.8419, allocations: 0 / 0.7924 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.567e-05/0.842, allocations: 53.77 kB / 0.7925 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.8423, allocations: 25.91 kB / 0.7925 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.8428, allocations: 237.6 kB / 0.7927 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.843, allocations: 0.7132 MB / 0.7934 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.272e-05/0.8431, allocations: 10.22 kB / 0.7934 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.8431, allocations: 14.44 kB / 0.7934 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of SimCode: time 2.31e-07/0.8431, allocations: 0 / 0.7934 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of Templates: time 0.006252/0.8494, allocations: 2.807 MB / 0.7962 GB, free: 45.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 cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)