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.0008855/0.0008855, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0009974/0.0009976, allocations: 168.7 kB / 15.95 MB, free: 204 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.453/1.453, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.748/1.748, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005589/0.0005589, allocations: 17.8 kB / 0.6737 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2977, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002649/0.3005, allocations: 1.374 MB / 0.7886 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008633/0.3013, allocations: 460.1 kB / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.362e-05/0.3014, allocations: 0 / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.429e-05/0.3015, allocations: 11.92 kB / 0.7891 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.3016, allocations: 11.86 kB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.3018, allocations: 23.97 kB / 0.7891 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.3019, allocations: 75.66 kB / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.3021, allocations: 19.98 kB / 0.7892 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.3022, allocations: 27.91 kB / 0.7892 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.564e-05/0.3023, allocations: 31.84 kB / 0.7893 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.3024, allocations: 0 / 0.7893 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.3024, allocations: 4 kB / 0.7893 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.3024, allocations: 11.94 kB / 0.7893 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.087e-05/0.3024, allocations: 37.64 kB / 0.7893 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.3026, allocations: 68.08 kB / 0.7894 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.3026, allocations: 0 / 0.7894 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.035e-06/0.3026, allocations: 0 / 0.7894 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.3026, allocations: 0 / 0.7894 GB, free: 9.77 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.0005899/0.3032, allocations: 379.1 kB / 0.7897 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3033, allocations: 12.03 kB / 0.7897 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.604e-05/0.3033, allocations: 7.906 kB / 0.7898 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.3035, allocations: 182.9 kB / 0.7899 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.3035, allocations: 0 / 0.7899 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/0.3036, allocations: 8 kB / 0.7899 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.3038, allocations: 95.25 kB / 0.79 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3038, allocations: 0 / 0.79 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.3039, allocations: 8 kB / 0.79 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3039, allocations: 0 / 0.79 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.304, allocations: 55.97 kB / 0.7901 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.3046, allocations: 328.6 kB / 0.7904 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.3048, allocations: 54.56 kB / 0.7905 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.243e-05/0.3049, allocations: 32.94 kB / 0.7905 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.3049, allocations: 8.062 kB / 0.7905 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3049, allocations: 38.5 kB / 0.7905 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.273e-06/0.3049, allocations: 0 / 0.7905 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003513/0.3053, allocations: 121.6 kB / 0.7906 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.3054, allocations: 77.11 kB / 0.7907 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.3055, allocations: 133.3 kB / 0.7908 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.3055, allocations: 25.7 kB / 0.7909 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.3056, allocations: 100 kB / 0.791 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.3056, allocations: 19.78 kB / 0.791 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.3056, allocations: 0 / 0.791 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3058, allocations: 322.8 kB / 0.7913 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.103e-05/0.3059, allocations: 23.98 kB / 0.7913 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.306, allocations: 49.64 kB / 0.7914 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.528e-05/0.3061, allocations: 32.02 kB / 0.7914 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3061, allocations: 0 / 0.7914 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001968/0.3063, allocations: 93.56 kB / 0.7915 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3063, allocations: 4 kB / 0.7915 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3063, allocations: 0 / 0.7915 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3063, allocations: 7.953 kB / 0.7915 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3065, allocations: 12 kB / 0.7915 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.3065, allocations: 3.984 kB / 0.7915 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.394e-05/0.3066, allocations: 12 kB / 0.7915 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.3066, allocations: 3.984 kB / 0.7915 GB, free: 7.332 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 0.0001073/0.3067, allocations: 122.4 kB / 0.7916 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.3067, allocations: 7.906 kB / 0.7917 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.659e-05/0.3068, allocations: 20.25 kB / 0.7917 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3068, allocations: 0 / 0.7917 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3068, allocations: 3.953 kB / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3068, allocations: 3.938 kB / 0.7917 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.307, allocations: 185.6 kB / 0.7919 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.307, allocations: 0 / 0.7919 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.926e-05/0.3071, allocations: 11.98 kB / 0.7919 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3071, allocations: 0 / 0.7919 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3071, allocations: 0 / 0.7919 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3071, allocations: 0 / 0.7919 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3071, allocations: 4 kB / 0.7919 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.3074, allocations: 187.4 kB / 0.792 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.245e-05/0.3074, allocations: 85.02 kB / 0.7921 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.3075, allocations: 11.92 kB / 0.7921 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.3076, allocations: 16 kB / 0.7922 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.3076, allocations: 11.97 kB / 0.7922 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.3076, allocations: 192 / 0.7922 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.074e-05/0.3077, allocations: 103.2 kB / 0.7923 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.274e-06/0.3077, allocations: 0 / 0.7923 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000229/0.308, allocations: 19.88 kB / 0.7923 GB, free: 6.453 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.0001342/0.3081, allocations: 99.25 kB / 0.7924 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002215/0.3083, allocations: 71.95 kB / 0.7924 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3083, allocations: 0 / 0.7924 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.427e-05/0.3084, allocations: 31.92 kB / 0.7925 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.3087, allocations: 10.44 kB / 0.7925 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004205/0.3092, allocations: 190.6 kB / 0.7927 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3095, allocations: 0.6965 MB / 0.7934 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.399e-05/0.3096, allocations: 4.172 kB / 0.7934 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.3096, allocations: 15.42 kB / 0.7934 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.3096, allocations: 0 / 0.7934 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of Templates: time 0.003084/0.3127, allocations: 0.7129 MB / 0.7941 GB, free: 4.586 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: