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.001153/0.001153, allocations: 97.14 kB / 16.27 MB, free: 6.418 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.00112/0.001121, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.47/1.47, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.791/1.791, allocations: 292.3 MB / 0.5495 GB, free: 17.69 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.001439/0.001439, allocations: 63.91 kB / 0.6722 GB, free: 6.555 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2521, allocations: 114.6 MB / 0.784 GB, free: 3.887 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003127/0.2552, allocations: 1.669 MB / 0.7857 GB, free: 2.199 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008179/0.2561, allocations: 499.7 kB / 0.7861 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.2561, allocations: 0 / 0.7861 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.369e-05/0.2562, allocations: 3.938 kB / 0.7861 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.966e-05/0.2563, allocations: 15.81 kB / 0.7862 GB, free: 1.684 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.2565, allocations: 31.95 kB / 0.7862 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.2566, allocations: 83.66 kB / 0.7863 GB, free: 1.57 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.2567, allocations: 27.98 kB / 0.7863 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.2569, allocations: 31.91 kB / 0.7863 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.544e-05/0.257, allocations: 35.84 kB / 0.7864 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.257, allocations: 8 kB / 0.7864 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.671e-05/0.257, allocations: 8 kB / 0.7864 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.494e-05/0.257, allocations: 11.92 kB / 0.7864 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.492e-05/0.2571, allocations: 39.8 kB / 0.7864 GB, free: 1.41 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.2572, allocations: 83.97 kB / 0.7865 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2572, allocations: 4 kB / 0.7865 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2572, allocations: 0 / 0.7865 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.2573, allocations: 0 / 0.7865 GB, free: 1.324 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.0005013/0.2578, allocations: 395.1 kB / 0.7869 GB, free: 0.8906 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.2578, allocations: 12.03 kB / 0.7869 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.2578, allocations: 8.844 kB / 0.7869 GB, free: 0.8711 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.258, allocations: 176.2 kB / 0.7871 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.258, allocations: 12.31 kB / 0.7871 GB, free: 0.6484 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.392e-05/0.258, allocations: 4.375 kB / 0.7871 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.2582, allocations: 91.67 kB / 0.7872 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2582, allocations: 7.938 kB / 0.7872 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.2583, allocations: 4 kB / 0.7872 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-06/0.2583, allocations: 0 / 0.7872 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/0.2584, allocations: 47.97 kB / 0.7872 GB, free: 496 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004799/0.2589, allocations: 328.6 kB / 0.7875 GB, free: 116 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.2591, allocations: 50.56 kB / 0.7876 GB, free: 56 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.968e-05/0.2591, allocations: 36.94 kB / 0.7876 GB, free: 16 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.2592, allocations: 0 / 0.7876 GB, free: 16 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4202/0.6793, allocations: 30.56 kB / 0.7877 GB, free: 48.97 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 4.859e-06/0.6794, allocations: 0 / 0.7877 GB, free: 48.97 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0005322/0.6799, allocations: 100.9 kB / 0.7878 GB, free: 48.94 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.68, allocations: 81.02 kB / 0.7878 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.6801, allocations: 129.1 kB / 0.788 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.6802, allocations: 25.7 kB / 0.788 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.6802, allocations: 108.8 kB / 0.7881 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.6803, allocations: 7.875 kB / 0.7881 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.6803, allocations: 19.52 kB / 0.7881 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.6804, allocations: 324.9 kB / 0.7884 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.88e-05/0.6805, allocations: 25.72 kB / 0.7884 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.171e-05/0.6806, allocations: 37 kB / 0.7885 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.6807, allocations: 48.62 kB / 0.7885 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.6807, allocations: 0 / 0.7885 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001814/0.6809, allocations: 86.11 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.6809, allocations: 2.625 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.681, allocations: 7.516 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.681, allocations: 0 / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.6811, allocations: 11.19 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.6811, allocations: 0 / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.293e-05/0.6812, allocations: 19.64 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.6812, allocations: 0 / 0.7886 GB, free: 48.25 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 7.764e-05/0.6813, allocations: 116.2 kB / 0.7888 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.6813, allocations: 11.16 kB / 0.7888 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.602e-05/0.6814, allocations: 15.05 kB / 0.7888 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.6814, allocations: 4.812 kB / 0.7888 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6814, allocations: 0 / 0.7888 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.6814, allocations: 1.781 kB / 0.7888 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.6816, allocations: 191.4 kB / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.6816, allocations: 0 / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.777e-05/0.6817, allocations: 12.38 kB / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.6817, allocations: 2.969 kB / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.6817, allocations: 1.094 kB / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.6817, allocations: 0 / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6817, allocations: 3.375 kB / 0.789 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.6819, allocations: 183.8 kB / 0.7892 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-05/0.682, allocations: 84.58 kB / 0.7892 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.682, allocations: 1.375 kB / 0.7892 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.6821, allocations: 13.8 kB / 0.7893 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.6822, allocations: 12.44 kB / 0.7893 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-06/0.6822, allocations: 1.719 kB / 0.7893 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.544e-05/0.6822, allocations: 106.6 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6823, allocations: 0 / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002223/0.6825, allocations: 14.59 kB / 0.7894 GB, free: 47.62 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 0.0001042/0.6826, allocations: 105 kB / 0.7895 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002151/0.6828, allocations: 55.56 kB / 0.7895 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.6828, allocations: 1.875 kB / 0.7895 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.623e-05/0.6829, allocations: 34.17 kB / 0.7896 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.6832, allocations: 8.156 kB / 0.7896 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003699/0.6836, allocations: 198.4 kB / 0.7898 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.6837, allocations: 0.69 MB / 0.7905 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.6838, allocations: 16.34 kB / 0.7905 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of SimCode: time 4.11e-07/0.6838, allocations: 0 / 0.7905 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of Templates: time 0.002409/0.6862, allocations: 0.9946 MB / 0.7914 GB, free: 46.68 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 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)