Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008918/0.0008918, allocations: 100 kB / 15.05 MB, free: 1.105 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.000894/0.000894, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.829/1.829, allocations: 292.5 MB / 0.5497 GB, free: 14.62 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.0005346/0.000535, allocations: 13.56 kB / 0.6736 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2975, allocations: 116.3 MB / 0.7871 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002345/0.2999, allocations: 1.362 MB / 0.7885 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009104/0.3009, allocations: 456.2 kB / 0.7889 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.417e-05/0.301, allocations: 4 kB / 0.7889 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.987e-05/0.301, allocations: 7.938 kB / 0.7889 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.3011, allocations: 15.97 kB / 0.7889 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.3013, allocations: 19.91 kB / 0.7889 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.3015, allocations: 51.94 kB / 0.789 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.3016, allocations: 15.98 kB / 0.789 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.3018, allocations: 39.78 kB / 0.789 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.3019, allocations: 27.84 kB / 0.7891 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.3019, allocations: 4 kB / 0.7891 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.71e-05/0.3019, allocations: 4 kB / 0.7891 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.689e-05/0.3019, allocations: 3.984 kB / 0.7891 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.778e-05/0.302, allocations: 37.64 kB / 0.7891 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.3021, allocations: 64.09 kB / 0.7892 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.3021, allocations: 0 / 0.7892 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3021, allocations: 0 / 0.7892 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.14e-05/0.3021, allocations: 0 / 0.7892 GB, free: 9.859 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005895/0.3027, allocations: 379.1 kB / 0.7895 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.3028, allocations: 12.03 kB / 0.7895 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.3029, allocations: 11.89 kB / 0.7896 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.303, allocations: 178.9 kB / 0.7897 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.3031, allocations: 7.938 kB / 0.7897 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.3031, allocations: 0 / 0.7897 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.3034, allocations: 99.31 kB / 0.7898 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3034, allocations: 0 / 0.7898 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.3034, allocations: 0 / 0.7898 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3034, allocations: 4 kB / 0.7898 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.3036, allocations: 63.89 kB / 0.7899 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005704/0.3042, allocations: 332.7 kB / 0.7902 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.3043, allocations: 54.59 kB / 0.7903 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3044, allocations: 4 kB / 0.7903 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.3044, allocations: 30.56 kB / 0.7903 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.343e-06/0.3044, allocations: 0 / 0.7903 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003769/0.3048, allocations: 121.6 kB / 0.7904 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3048, allocations: 77.11 kB / 0.7905 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.305, allocations: 133.1 kB / 0.7906 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.305, allocations: 25.7 kB / 0.7906 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.3051, allocations: 96.05 kB / 0.7907 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.3051, allocations: 19.83 kB / 0.7907 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-06/0.3051, allocations: 7.938 kB / 0.7908 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3052, allocations: 314.8 kB / 0.7911 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.672e-05/0.3053, allocations: 27.92 kB / 0.7911 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.233e-05/0.3054, allocations: 45.69 kB / 0.7911 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.026e-05/0.3055, allocations: 32.02 kB / 0.7912 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3055, allocations: 0 / 0.7912 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001933/0.3057, allocations: 89.77 kB / 0.7912 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3057, allocations: 8 kB / 0.7912 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3057, allocations: 0 / 0.7912 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3058, allocations: 4 kB / 0.7913 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3059, allocations: 19.92 kB / 0.7913 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.3059, allocations: 0 / 0.7913 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.165e-05/0.306, allocations: 19.92 kB / 0.7913 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.306, allocations: 0 / 0.7913 GB, free: 7.457 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 9.425e-05/0.3061, allocations: 113.8 kB / 0.7914 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.3061, allocations: 11.91 kB / 0.7914 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.645e-05/0.3062, allocations: 20.42 kB / 0.7914 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3062, allocations: 0 / 0.7914 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.3062, allocations: 7.953 kB / 0.7914 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.3062, allocations: 3.938 kB / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.3064, allocations: 181.6 kB / 0.7916 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3064, allocations: 3.984 kB / 0.7916 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.668e-05/0.3065, allocations: 8 kB / 0.7916 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3065, allocations: 0 / 0.7916 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.3065, allocations: 7.984 kB / 0.7916 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.3065, allocations: 0 / 0.7916 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3065, allocations: 4 kB / 0.7916 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3068, allocations: 187.3 kB / 0.7918 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-05/0.3068, allocations: 89.02 kB / 0.7919 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.3069, allocations: 4 kB / 0.7919 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.307, allocations: 15.98 kB / 0.7919 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.307, allocations: 7.984 kB / 0.7919 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.3071, allocations: 0 / 0.7919 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.371e-05/0.3071, allocations: 99.27 kB / 0.792 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3071, allocations: 0 / 0.792 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002188/0.3074, allocations: 19.89 kB / 0.792 GB, free: 6.586 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000122/0.3075, allocations: 111.2 kB / 0.7921 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.3077, allocations: 59.97 kB / 0.7922 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3077, allocations: 0 / 0.7922 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.071e-05/0.3078, allocations: 35.92 kB / 0.7922 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.308, allocations: 6.438 kB / 0.7922 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003647/0.3084, allocations: 194.5 kB / 0.7924 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.3086, allocations: 0.6965 MB / 0.7931 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.82e-05/0.3087, allocations: 4 kB / 0.7931 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.264e-05/0.3087, allocations: 11.42 kB / 0.7931 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.3087, allocations: 0 / 0.7931 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of Templates: time 0.002927/0.3117, allocations: 0.7239 MB / 0.7938 GB, free: 4.711 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) Environment - environmentSimulation: