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.392/1.392, allocations: 252 MB / 268 MB, free: 10.86 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.001121/0.001121, allocations: 171 kB / 327.6 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 0.5786 GB, free: 20.41 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.000949/0.0009492, allocations: 94.28 kB / 0.6832 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005708/0.0005709, allocations: 12.97 kB / 0.7976 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3054, allocations: 106.3 MB / 0.9015 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002416/0.308, allocations: 1.393 MB / 0.9028 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008895/0.3089, allocations: 491.4 kB / 0.9033 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.309, allocations: 4 kB / 0.9033 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.604e-05/0.309, allocations: 3.938 kB / 0.9033 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.3091, allocations: 15.86 kB / 0.9033 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.3094, allocations: 27.91 kB / 0.9033 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.3095, allocations: 71.78 kB / 0.9034 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.3097, allocations: 27.98 kB / 0.9034 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.3098, allocations: 31.8 kB / 0.9035 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.31, allocations: 31.83 kB / 0.9035 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.31, allocations: 8 kB / 0.9035 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.696e-05/0.31, allocations: 0 / 0.9035 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.3101, allocations: 11.94 kB / 0.9035 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.3101, allocations: 57.5 kB / 0.9036 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.3103, allocations: 51.88 kB / 0.9036 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3103, allocations: 0 / 0.9036 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of FrontEnd: time 5.731e-06/0.3103, allocations: 3.984 kB / 0.9036 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.3103, allocations: 0 / 0.9036 GB, free: 61.54 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.0006425/0.3109, allocations: 397.5 kB / 0.904 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.311, allocations: 8.031 kB / 0.904 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/0.3111, allocations: 8.844 kB / 0.904 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.3112, allocations: 172.2 kB / 0.9042 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3113, allocations: 4.375 kB / 0.9042 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.3113, allocations: 4.375 kB / 0.9042 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.3115, allocations: 107.6 kB / 0.9043 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3116, allocations: 0 / 0.9043 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.3116, allocations: 3.938 kB / 0.9043 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3116, allocations: 0 / 0.9043 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.3118, allocations: 55.97 kB / 0.9043 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.3123, allocations: 340.5 kB / 0.9047 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.3125, allocations: 54.56 kB / 0.9047 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.415e-05/0.3126, allocations: 33.03 kB / 0.9048 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.3126, allocations: 7.938 kB / 0.9048 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.3127, allocations: 30.56 kB / 0.9048 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.3127, allocations: 0 / 0.9048 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.000398/0.3131, allocations: 117.5 kB / 0.9049 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.3131, allocations: 77.11 kB / 0.905 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.3132, allocations: 132.1 kB / 0.9051 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3133, allocations: 25.7 kB / 0.9051 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.737e-05/0.3133, allocations: 104 kB / 0.9052 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.3134, allocations: 19.77 kB / 0.9052 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.3134, allocations: 4 kB / 0.9052 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.3135, allocations: 318.8 kB / 0.9056 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.145e-05/0.3136, allocations: 31.98 kB / 0.9056 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.839e-05/0.3137, allocations: 45.64 kB / 0.9056 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.3138, allocations: 52.83 kB / 0.9057 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3138, allocations: 0 / 0.9057 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001802/0.314, allocations: 97.61 kB / 0.9058 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3141, allocations: 8 kB / 0.9058 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3141, allocations: 0 / 0.9058 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.3141, allocations: 0 / 0.9058 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3142, allocations: 11.98 kB / 0.9058 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.3142, allocations: 7.922 kB / 0.9058 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.445e-05/0.3143, allocations: 19.98 kB / 0.9058 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.3143, allocations: 3.938 kB / 0.9058 GB, free: 59.05 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.926e-05/0.3144, allocations: 117.8 kB / 0.9059 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.3145, allocations: 3.906 kB / 0.9059 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.6e-05/0.3145, allocations: 16.23 kB / 0.906 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3145, allocations: 0 / 0.906 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3145, allocations: 0 / 0.906 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3145, allocations: 192 / 0.906 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.3147, allocations: 197.6 kB / 0.9061 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3147, allocations: 0 / 0.9061 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.826e-05/0.3148, allocations: 12 kB / 0.9062 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3148, allocations: 3.984 kB / 0.9062 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.3148, allocations: 4 kB / 0.9062 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3148, allocations: 0 / 0.9062 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3148, allocations: 3.938 kB / 0.9062 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.3151, allocations: 191.3 kB / 0.9063 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.3151, allocations: 85.02 kB / 0.9064 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.3151, allocations: 4 kB / 0.9064 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.3152, allocations: 15.98 kB / 0.9064 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.3153, allocations: 7.984 kB / 0.9065 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.3153, allocations: 0 / 0.9065 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.915e-05/0.3154, allocations: 114 kB / 0.9066 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.683e-06/0.3154, allocations: 4 kB / 0.9066 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002041/0.3156, allocations: 11.94 kB / 0.9066 GB, free: 58.18 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 (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.0001252/0.3157, allocations: 99.48 kB / 0.9067 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.316, allocations: 59.97 kB / 0.9067 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.316, allocations: 4 kB / 0.9067 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.953e-05/0.3161, allocations: 35.91 kB / 0.9068 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.3164, allocations: 14.41 kB / 0.9068 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.3168, allocations: 236.3 kB / 0.907 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.317, allocations: 0.6887 MB / 0.9077 GB, free: 57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.317, allocations: 7.438 kB / 0.9077 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of SimCode: time 4.71e-07/0.317, allocations: 0 / 0.9077 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of Templates: time 0.002401/0.3194, allocations: 0.9834 MB / 0.9086 GB, free: 56.01 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)