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.001176/0.001176, allocations: 106.6 kB / 16.29 MB, free: 6.43 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.001146/0.001146, allocations: 187.9 kB / 17.22 MB, free: 5.934 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.202/1.202, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.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.558/1.558, allocations: 292.3 MB / 0.5495 GB, free: 17.48 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.001301/0.001301, allocations: 67.89 kB / 0.6722 GB, free: 6.477 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1862, allocations: 114.6 MB / 0.7841 GB, free: 3.805 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002615/0.1888, allocations: 1.658 MB / 0.7857 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007061/0.1896, allocations: 0.4919 MB / 0.7862 GB, free: 1.625 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.515e-05/0.1896, allocations: 4 kB / 0.7862 GB, free: 1.621 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.201e-05/0.1897, allocations: 3.938 kB / 0.7862 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.554e-05/0.1897, allocations: 23.78 kB / 0.7862 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.1899, allocations: 23.97 kB / 0.7862 GB, free: 1.57 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.19, allocations: 87.64 kB / 0.7863 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.1901, allocations: 27.98 kB / 0.7863 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.201e-05/0.1902, allocations: 31.92 kB / 0.7864 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.071e-05/0.1903, allocations: 39.77 kB / 0.7864 GB, free: 1.387 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.1903, allocations: 8 kB / 0.7864 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.771e-05/0.1903, allocations: 8 kB / 0.7864 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.281e-05/0.1904, allocations: 15.98 kB / 0.7864 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.634e-05/0.1904, allocations: 35.8 kB / 0.7865 GB, free: 1.32 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.1905, allocations: 91.84 kB / 0.7866 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1906, allocations: 4 kB / 0.7866 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.914e-06/0.1906, allocations: 0 / 0.7866 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.1906, allocations: 4 kB / 0.7866 GB, free: 1.223 MB / 0.6544 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.0004691/0.191, allocations: 383.1 kB / 0.7869 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.1911, allocations: 12.02 kB / 0.787 GB, free: 0.7891 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.1911, allocations: 8.844 kB / 0.787 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.1913, allocations: 172.2 kB / 0.7871 GB, free: 0.5742 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.1913, allocations: 12.31 kB / 0.7871 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.1913, allocations: 4.375 kB / 0.7871 GB, free: 0.5586 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.1915, allocations: 99.62 kB / 0.7872 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.1915, allocations: 0 / 0.7872 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.1915, allocations: 0 / 0.7872 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1915, allocations: 0 / 0.7872 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.1917, allocations: 51.95 kB / 0.7873 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004108/0.1921, allocations: 332.6 kB / 0.7876 GB, free: 24 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2832/0.4753, allocations: 44.41 kB / 0.7876 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.4754, allocations: 28.33 kB / 0.7877 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.4755, allocations: 4.859 kB / 0.7877 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.4755, allocations: 30.56 kB / 0.7877 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.783e-06/0.4755, allocations: 1.344 kB / 0.7877 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0003082/0.4758, allocations: 100 kB / 0.7878 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.4759, allocations: 81.36 kB / 0.7879 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.645e-05/0.4759, allocations: 129 kB / 0.788 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.476, allocations: 26.75 kB / 0.788 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.476, allocations: 106.8 kB / 0.7881 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.476, allocations: 14.67 kB / 0.7881 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.4761, allocations: 14.34 kB / 0.7882 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.192e-05/0.4761, allocations: 321.7 kB / 0.7885 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.758e-05/0.4762, allocations: 28.02 kB / 0.7885 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.278e-05/0.4763, allocations: 36 kB / 0.7885 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.4764, allocations: 54.75 kB / 0.7886 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4764, allocations: 0 / 0.7886 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001479/0.4765, allocations: 88.39 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.4766, allocations: 6.469 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.4766, allocations: 0 / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.4766, allocations: 2.766 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.69e-05/0.4767, allocations: 10.73 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.4767, allocations: 0 / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.703e-05/0.4768, allocations: 10.28 kB / 0.7887 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-06/0.4768, allocations: 3.406 kB / 0.7887 GB, free: 48.05 MB / 0.6544 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 (chiSwi.hysteresis.y,$PRE.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 6.406e-05/0.4769, allocations: 126.8 kB / 0.7888 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.4769, allocations: 10.06 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.438e-05/0.4769, allocations: 7.719 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4769, allocations: 0.5938 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4769, allocations: 5.844 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.4769, allocations: 4.359 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.4771, allocations: 192.4 kB / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.4771, allocations: 0 / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.056e-05/0.4771, allocations: 9.719 kB / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4772, allocations: 3.281 kB / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.4772, allocations: 2.719 kB / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4772, allocations: 3.219 kB / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.4772, allocations: 0 / 0.789 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001574/0.4773, allocations: 182.5 kB / 0.7892 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.058e-05/0.4774, allocations: 84.11 kB / 0.7893 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.4774, allocations: 0.5 kB / 0.7893 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.648e-05/0.4775, allocations: 14.53 kB / 0.7893 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/0.4775, allocations: 7.578 kB / 0.7893 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.4776, allocations: 9.203 kB / 0.7893 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.4776, allocations: 103.5 kB / 0.7894 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4776, allocations: 0 / 0.7894 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000207/0.4778, allocations: 12.16 kB / 0.7894 GB, free: 47.43 MB / 0.6544 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 7.471e-05/0.4779, allocations: 103.8 kB / 0.7895 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000173/0.4781, allocations: 57.09 kB / 0.7896 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4781, allocations: 0.9688 kB / 0.7896 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 6.643e-05/0.4782, allocations: 27.55 kB / 0.7896 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.4784, allocations: 12.11 kB / 0.7896 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002943/0.4787, allocations: 172.9 kB / 0.7898 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.4789, allocations: 0.6935 MB / 0.7905 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.718e-05/0.4789, allocations: 4.156 kB / 0.7905 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.292e-05/0.4789, allocations: 13.62 kB / 0.7905 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of SimCode: time 2e-07/0.4789, allocations: 0 / 0.7905 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of Templates: time 0.002509/0.4815, allocations: 0.8716 MB / 0.7913 GB, free: 46.52 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)