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.001475/0.001476, allocations: 101.4 kB / 15.69 MB, free: 140 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 200.9 kB / 16.63 MB, free: 6.324 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.298/1.298, allocations: 205.1 MB / 222.5 MB, free: 4.359 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.685/1.685, allocations: 292.3 MB / 0.549 GB, free: 12.78 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.001453/0.001453, allocations: 68.84 kB / 0.6723 GB, free: 25.71 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1993, allocations: 114.5 MB / 0.7841 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002901/0.2022, allocations: 1.673 MB / 0.7858 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006933/0.2029, allocations: 492.7 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.837e-05/0.203, allocations: 0 / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.103e-05/0.203, allocations: 3.938 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.134e-05/0.2031, allocations: 23.78 kB / 0.7863 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001526/0.2032, allocations: 31.97 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.492e-05/0.2033, allocations: 79.72 kB / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.2035, allocations: 31.97 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.182e-05/0.2036, allocations: 31.86 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.911e-05/0.2036, allocations: 31.84 kB / 0.7865 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.2037, allocations: 12 kB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.717e-05/0.2037, allocations: 8 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.08e-05/0.2037, allocations: 15.92 kB / 0.7865 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.2038, allocations: 43.78 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.2039, allocations: 83.64 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2039, allocations: 0 / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2039, allocations: 4 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.2039, allocations: 0 / 0.7866 GB, free: 10.2 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.000482/0.2044, allocations: 383.1 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.718e-05/0.2044, allocations: 12.03 kB / 0.787 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.345e-05/0.2044, allocations: 8.844 kB / 0.787 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.2046, allocations: 188.1 kB / 0.7872 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.016e-06/0.2046, allocations: 4.375 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.2046, allocations: 4.375 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.2048, allocations: 91.69 kB / 0.7873 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.2048, allocations: 3.938 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2049, allocations: 4 kB / 0.7873 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.2049, allocations: 0 / 0.7873 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.205, allocations: 55.89 kB / 0.7873 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004462/0.2055, allocations: 316.7 kB / 0.7876 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.2056, allocations: 58.58 kB / 0.7877 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.643e-05/0.2057, allocations: 32.94 kB / 0.7877 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.2057, allocations: 0 / 0.7877 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.2057, allocations: 30.56 kB / 0.7878 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.2058, allocations: 0 / 0.7878 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003365/0.2061, allocations: 105.5 kB / 0.7879 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.2061, allocations: 85.11 kB / 0.7879 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.223e-05/0.2062, allocations: 126.1 kB / 0.7881 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.2063, allocations: 29.7 kB / 0.7881 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.697e-05/0.2063, allocations: 99.98 kB / 0.7882 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.2063, allocations: 7.891 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.2064, allocations: 17.72 kB / 0.7882 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.2065, allocations: 326.8 kB / 0.7885 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.831e-05/0.2066, allocations: 23.98 kB / 0.7885 GB, free: 8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.181e-05/0.2067, allocations: 41.7 kB / 0.7886 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.2068, allocations: 48.83 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2068, allocations: 3.938 kB / 0.7886 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001906/0.207, allocations: 85.52 kB / 0.7887 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.207, allocations: 8 kB / 0.7887 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.207, allocations: 4.031 kB / 0.7887 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.207, allocations: 3.984 kB / 0.7887 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.2071, allocations: 12 kB / 0.7887 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.2072, allocations: 3.984 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.561e-05/0.2072, allocations: 7.984 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.2073, allocations: 7.938 kB / 0.7888 GB, free: 7.762 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 (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 7.406e-05/0.2073, allocations: 118.5 kB / 0.7889 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.2074, allocations: 7.906 kB / 0.7889 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.2074, allocations: 12.25 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2074, allocations: 192 / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2074, allocations: 4 kB / 0.7889 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2074, allocations: 3.984 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.2076, allocations: 189.5 kB / 0.7891 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2076, allocations: 0 / 0.7891 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.2077, allocations: 15.98 kB / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2077, allocations: 0 / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.2077, allocations: 0 / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.2077, allocations: 12.06 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2077, allocations: 8 kB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.208, allocations: 175.4 kB / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.208, allocations: 85.02 kB / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.208, allocations: 0 / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2082, allocations: 11.98 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.2082, allocations: 11.98 kB / 0.7894 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.2082, allocations: 4 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.932e-05/0.2083, allocations: 114.1 kB / 0.7895 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2083, allocations: 0 / 0.7895 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000223/0.2085, allocations: 12 kB / 0.7895 GB, free: 6.895 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 (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.0001019/0.2086, allocations: 100.2 kB / 0.7896 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001996/0.2088, allocations: 55.91 kB / 0.7897 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2088, allocations: 4 kB / 0.7897 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.181e-05/0.2089, allocations: 27.98 kB / 0.7897 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.2092, allocations: 3.984 kB / 0.7897 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003436/0.2095, allocations: 186.9 kB / 0.7899 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.2098, allocations: 0.6885 MB / 0.7905 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.444e-05/0.2098, allocations: 8 kB / 0.7905 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.485e-05/0.2099, allocations: 11.44 kB / 0.7906 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2099, allocations: 0 / 0.7906 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of Templates: time 0.002744/0.2126, allocations: 0.8813 MB / 0.7914 GB, free: 4.887 MB / 0.6075 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 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)