Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 252 MB / 267.6 MB, free: 10.9 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 173.5 kB / 327.3 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.4 MB / 0.5783 GB, free: 20.19 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008126/0.0008125, allocations: 98.48 kB / 0.6829 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000485/0.0004852, allocations: 9.906 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3014, allocations: 106.3 MB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001883/0.3033, allocations: 1.373 MB / 0.9022 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006978/0.3041, allocations: 479.7 kB / 0.9026 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.3041, allocations: 0 / 0.9026 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.826e-05/0.3042, allocations: 4 kB / 0.9026 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.3043, allocations: 15.84 kB / 0.9026 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.3045, allocations: 23.86 kB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.421e-05/0.3046, allocations: 67.78 kB / 0.9027 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.3047, allocations: 19.98 kB / 0.9028 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.3048, allocations: 31.84 kB / 0.9028 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.066e-05/0.3049, allocations: 31.84 kB / 0.9028 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.796e-05/0.3049, allocations: 0 / 0.9028 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.3049, allocations: 4 kB / 0.9028 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.602e-05/0.305, allocations: 15.92 kB / 0.9028 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.305, allocations: 33.7 kB / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.624e-05/0.3051, allocations: 55.88 kB / 0.9029 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.3051, allocations: 0 / 0.9029 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3051, allocations: 0 / 0.9029 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3051, allocations: 7.938 kB / 0.9029 GB, free: 61.71 MB / 0.6042 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.0005005/0.3056, allocations: 383.3 kB / 0.9033 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3057, allocations: 8.031 kB / 0.9033 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.453e-05/0.3057, allocations: 11.89 kB / 0.9033 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.3059, allocations: 178.9 kB / 0.9035 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.3059, allocations: 8 kB / 0.9035 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.3059, allocations: 4 kB / 0.9035 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.3061, allocations: 87.38 kB / 0.9036 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3062, allocations: 3.938 kB / 0.9036 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.3062, allocations: 4 kB / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3062, allocations: 0 / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.3064, allocations: 63.95 kB / 0.9036 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004622/0.3068, allocations: 344.5 kB / 0.904 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.307, allocations: 54.56 kB / 0.904 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.671e-05/0.3071, allocations: 28.94 kB / 0.9041 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.3071, allocations: 0 / 0.9041 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.3072, allocations: 42.56 kB / 0.9041 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.3072, allocations: 0 / 0.9041 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0003759/0.3076, allocations: 117.5 kB / 0.9042 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.3076, allocations: 81.11 kB / 0.9043 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.661e-05/0.3077, allocations: 130.1 kB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.3077, allocations: 25.7 kB / 0.9044 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/0.3078, allocations: 99.98 kB / 0.9045 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.3078, allocations: 19.8 kB / 0.9045 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-06/0.3078, allocations: 0 / 0.9045 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.424e-05/0.3079, allocations: 314.8 kB / 0.9048 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.168e-05/0.308, allocations: 27.98 kB / 0.9049 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.983e-05/0.3081, allocations: 45.69 kB / 0.9049 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.594e-05/0.3082, allocations: 27.98 kB / 0.9049 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3082, allocations: 0 / 0.9049 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002178/0.3084, allocations: 93.64 kB / 0.905 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3084, allocations: 4 kB / 0.905 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3084, allocations: 3.953 kB / 0.905 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3085, allocations: 4 kB / 0.905 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3086, allocations: 11.98 kB / 0.9051 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3086, allocations: 3.938 kB / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.566e-05/0.3087, allocations: 27.83 kB / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.168e-06/0.3087, allocations: 0 / 0.9051 GB, free: 59.27 MB / 0.6042 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 8.298e-05/0.3088, allocations: 117.8 kB / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.3088, allocations: 4 kB / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.3089, allocations: 16.23 kB / 0.9052 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3089, allocations: 3.953 kB / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3089, allocations: 0 / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3089, allocations: 0 / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.3091, allocations: 193.5 kB / 0.9054 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3091, allocations: 0 / 0.9054 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.962e-05/0.3092, allocations: 8 kB / 0.9054 GB, free: 58.87 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3092, allocations: 0 / 0.9054 GB, free: 58.87 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.3092, allocations: 3.984 kB / 0.9054 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3092, allocations: 3.938 kB / 0.9054 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3092, allocations: 4.141 kB / 0.9054 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.3095, allocations: 183.5 kB / 0.9056 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.797e-05/0.3095, allocations: 89.02 kB / 0.9057 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.3095, allocations: 4 kB / 0.9057 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.3097, allocations: 15.98 kB / 0.9057 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.3097, allocations: 15.94 kB / 0.9057 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.3097, allocations: 0 / 0.9057 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.286e-05/0.3098, allocations: 102.5 kB / 0.9058 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3098, allocations: 3.938 kB / 0.9058 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002379/0.3101, allocations: 12 kB / 0.9058 GB, free: 58.41 MB / 0.6042 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.000113/0.3102, allocations: 103.5 kB / 0.9059 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002428/0.3104, allocations: 67.91 kB / 0.906 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3104, allocations: 0 / 0.906 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.011e-05/0.3105, allocations: 31.97 kB / 0.906 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.3108, allocations: 5.828 kB / 0.906 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.3112, allocations: 236.3 kB / 0.9063 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.3114, allocations: 0.6887 MB / 0.9069 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.742e-05/0.3114, allocations: 11.44 kB / 0.9069 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of SimCode: time 4e-07/0.3115, allocations: 0 / 0.9069 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of Templates: time 0.002273/0.3137, allocations: 0.9898 MB / 0.9079 GB, free: 56.23 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)