Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.948/2.948, allocations: 287.5 MB / 302.4 MB, free: 8.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001572/0.001572, allocations: 178.1 kB / 371 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.4 MB / 0.6297 GB, free: 10.5 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 87.33 kB / 0.743 GB, free: 6.504 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000521/0.0005212, allocations: 17.53 kB / 0.8658 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2574, allocations: 115.3 MB / 0.9784 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001065/0.2586, allocations: 486.3 kB / 0.9788 GB, free: 27.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2603, allocations: 1.107 MB / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.275e-05/0.2604, allocations: 0 / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.696e-05/0.2604, allocations: 7.922 kB / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.731e-05/0.2605, allocations: 15.92 kB / 0.9799 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006279/0.2612, allocations: 114.5 kB / 0.98 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.2614, allocations: 99.75 kB / 0.9801 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.2615, allocations: 19.98 kB / 0.9802 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.2616, allocations: 39.91 kB / 0.9802 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.2617, allocations: 47.81 kB / 0.9802 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.2618, allocations: 8 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.916e-05/0.2619, allocations: 23.98 kB / 0.9803 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.208e-05/0.2619, allocations: 7.984 kB / 0.9803 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.914e-05/0.262, allocations: 37.64 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.2622, allocations: 84.08 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2622, allocations: 0 / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.775e-06/0.2622, allocations: 0 / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.2622, allocations: 0 / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007293/0.2629, allocations: 420.8 kB / 0.9808 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.263, allocations: 12.02 kB / 0.9808 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.321e-05/0.2631, allocations: 15.84 kB / 0.9808 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.2632, allocations: 171 kB / 0.981 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.2632, allocations: 4 kB / 0.981 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.2633, allocations: 11.98 kB / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.2637, allocations: 101.6 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2637, allocations: 0 / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.2637, allocations: 0 / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.2637, allocations: 0 / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005208/0.2643, allocations: 95.86 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006066/0.2649, allocations: 336.7 kB / 0.9815 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.2652, allocations: 66.47 kB / 0.9816 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.2655, allocations: 52.92 kB / 0.9816 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2656, allocations: 3.984 kB / 0.9816 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004303/0.266, allocations: 107.3 kB / 0.9817 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 3.717e-06/0.266, allocations: 0 / 0.9817 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0009973/0.267, allocations: 205.4 kB / 0.9819 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.2671, allocations: 55.36 kB / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.2672, allocations: 124.4 kB / 0.9821 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.2673, allocations: 25.7 kB / 0.9821 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.264e-05/0.2673, allocations: 96.12 kB / 0.9822 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.2674, allocations: 15.75 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.843e-05/0.2674, allocations: 0 / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.284e-05/0.2675, allocations: 322.8 kB / 0.9825 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.2679, allocations: 67.95 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003666/0.2682, allocations: 94.52 kB / 0.9827 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.2686, allocations: 97.66 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2686, allocations: 4 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009087/0.2695, allocations: 235.3 kB / 0.983 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.2696, allocations: 37.69 kB / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2696, allocations: 0 / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.2697, allocations: 0 / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.2699, allocations: 23.92 kB / 0.9831 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2699, allocations: 7.938 kB / 0.9831 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004569/0.2704, allocations: 59.95 kB / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.2704, allocations: 4 kB / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.2706, allocations: 117.9 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.2706, allocations: 19.83 kB / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.114e-05/0.2706, allocations: 12.38 kB / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2707, allocations: 0 / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2707, allocations: 0 / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.2707, allocations: 3.953 kB / 0.9833 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.2708, allocations: 177.6 kB / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2709, allocations: 0 / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.271, allocations: 23.97 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.2711, allocations: 4 kB / 0.9835 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.2711, allocations: 4 kB / 0.9835 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.2711, allocations: 4.344 kB / 0.9835 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2711, allocations: 3.938 kB / 0.9835 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00066/0.2718, allocations: 176.9 kB / 0.9837 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.2718, allocations: 85.02 kB / 0.9837 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.2719, allocations: 0 / 0.9837 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.272, allocations: 23.97 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.2721, allocations: 4 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.2721, allocations: 4 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.306e-05/0.2722, allocations: 95.27 kB / 0.9839 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2722, allocations: 0 / 0.9839 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003083/0.2725, allocations: 20 kB / 0.9839 GB, free: 22.31 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001818/0.2727, allocations: 100.2 kB / 0.984 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008501/0.2736, allocations: 223.2 kB / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2736, allocations: 0 / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.2739, allocations: 55.91 kB / 0.9842 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.2743, allocations: 26.23 kB / 0.9843 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000454/0.2747, allocations: 174.6 kB / 0.9844 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2749, allocations: 0.6887 MB / 0.9851 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.235e-05/0.275, allocations: 8.188 kB / 0.9851 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.275, allocations: 11.44 kB / 0.9851 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of SimCode: time 1.252e-06/0.275, allocations: 0 / 0.9851 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of Templates: time 0.005043/0.2801, allocations: 1.333 MB / 0.9864 GB, free: 19.64 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)