Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.0012, allocations: 105.4 kB / 15.7 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 193 kB / 16.64 MB, free: 6.582 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.67/1.67, allocations: 205.1 MB / 222.5 MB, free: 4.57 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.837/1.837, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001523/0.001524, allocations: 73.72 kB / 0.6723 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3028, allocations: 114.5 MB / 0.7841 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002335/0.3052, allocations: 0.774 MB / 0.7849 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00153/0.3067, allocations: 1.137 MB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.921e-05/0.3068, allocations: 0 / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.701e-05/0.3069, allocations: 3.938 kB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.307, allocations: 11.86 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.3076, allocations: 135.3 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001925/0.3078, allocations: 135.7 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.3079, allocations: 12 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.308, allocations: 51.84 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.3081, allocations: 55.86 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.3082, allocations: 12 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.71e-05/0.3082, allocations: 23.98 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.3083, allocations: 15.92 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.888e-05/0.3084, allocations: 43.83 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.3086, allocations: 123.7 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3086, allocations: 0 / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3086, allocations: 0 / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.3086, allocations: 0 / 0.7866 GB, free: 10.16 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007666/0.3094, allocations: 428.9 kB / 0.787 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3094, allocations: 11.97 kB / 0.787 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.3095, allocations: 12.84 kB / 0.787 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.3096, allocations: 176.2 kB / 0.7872 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.3097, allocations: 4.375 kB / 0.7872 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.3097, allocations: 8.312 kB / 0.7872 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.31, allocations: 78.2 kB / 0.7873 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.31, allocations: 192 / 0.7873 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.31, allocations: 7.938 kB / 0.7873 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.31, allocations: 4 kB / 0.7873 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/0.3103, allocations: 63.92 kB / 0.7874 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005293/0.3108, allocations: 340.6 kB / 0.7877 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.311, allocations: 59.59 kB / 0.7877 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.3112, allocations: 36.92 kB / 0.7878 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.3112, allocations: 0 / 0.7878 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.3115, allocations: 103.3 kB / 0.7879 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.3116, allocations: 3.938 kB / 0.7879 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0005837/0.3121, allocations: 161.6 kB / 0.788 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3122, allocations: 51.41 kB / 0.7881 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.3123, allocations: 129.6 kB / 0.7882 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.3123, allocations: 37.7 kB / 0.7882 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.956e-05/0.3124, allocations: 88.14 kB / 0.7883 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.3124, allocations: 19.73 kB / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.63e-05/0.3125, allocations: 33.7 kB / 0.7884 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.3126, allocations: 318.8 kB / 0.7887 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.3128, allocations: 59.94 kB / 0.7887 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.313, allocations: 90.45 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.3134, allocations: 132.2 kB / 0.789 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3134, allocations: 4 kB / 0.789 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000508/0.3139, allocations: 215.2 kB / 0.7892 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.161e-05/0.314, allocations: 37.7 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.314, allocations: 4 kB / 0.7892 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.314, allocations: 0 / 0.7892 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3141, allocations: 27.97 kB / 0.7892 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.3141, allocations: 0 / 0.7892 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.3144, allocations: 35.95 kB / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.3144, allocations: 4 kB / 0.7893 GB, free: 7.16 MB / 0.6075 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,booPul.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.604e-05/0.3145, allocations: 122.4 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.3145, allocations: 7.906 kB / 0.7894 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.3146, allocations: 12.47 kB / 0.7894 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.3146, allocations: 7.938 kB / 0.7894 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3146, allocations: 3.938 kB / 0.7894 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3146, allocations: 0 / 0.7894 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.3147, allocations: 185.6 kB / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3147, allocations: 0 / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.303e-05/0.3148, allocations: 15.98 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3148, allocations: 0 / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.3149, allocations: 0 / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3149, allocations: 0 / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3149, allocations: 0 / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.3152, allocations: 160.8 kB / 0.7898 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.3153, allocations: 85.02 kB / 0.7898 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.3153, allocations: 4.359 kB / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.333e-05/0.3154, allocations: 15.98 kB / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.3155, allocations: 8 kB / 0.7899 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3155, allocations: 7.984 kB / 0.7899 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.589e-05/0.3155, allocations: 95.28 kB / 0.79 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3155, allocations: 0 / 0.79 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002152/0.3158, allocations: 27.98 kB / 0.79 GB, free: 6.32 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: 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 (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.0001554/0.3159, allocations: 103.2 kB / 0.7901 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004748/0.3164, allocations: 191.2 kB / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3164, allocations: 0 / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.3166, allocations: 47.95 kB / 0.7903 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.3168, allocations: 18.59 kB / 0.7903 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/0.3172, allocations: 162.1 kB / 0.7905 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.3175, allocations: 0.6885 MB / 0.7912 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.835e-05/0.3175, allocations: 7.984 kB / 0.7912 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.803e-05/0.3175, allocations: 15.44 kB / 0.7912 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.3175, allocations: 0 / 0.7912 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of Templates: time 0.00425/0.3218, allocations: 1.573 MB / 0.7927 GB, free: 3.469 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)