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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.551/1.551, allocations: 292.3 MB / 308.1 MB, free: 4.355 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001178/0.001178, allocations: 184.5 kB / 376.9 MB, free: 1.863 MB / 298.7 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 MB / 0.6353 GB, free: 9.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009243/0.0009243, allocations: 94.47 kB / 0.748 GB, free: 61.18 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 55.92 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2522, allocations: 114.6 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003434/0.2557, allocations: 1.731 MB / 0.9839 GB, free: 8.641 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0008889/0.2566, allocations: 479.8 kB / 0.9844 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.2567, allocations: 0 / 0.9844 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 5.181e-05/0.2568, allocations: 3.938 kB / 0.9844 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.2569, allocations: 19.84 kB / 0.9844 GB, free: 8.141 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.2571, allocations: 23.98 kB / 0.9844 GB, free: 8.117 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.2573, allocations: 83.66 kB / 0.9845 GB, free: 8.035 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.2574, allocations: 23.97 kB / 0.9845 GB, free: 8.012 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2575, allocations: 35.86 kB / 0.9846 GB, free: 7.977 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.498e-05/0.2576, allocations: 31.84 kB / 0.9846 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.2576, allocations: 8 kB / 0.9846 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 1.967e-05/0.2577, allocations: 4 kB / 0.9846 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.2577, allocations: 19.91 kB / 0.9846 GB, free: 7.914 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.2578, allocations: 31.8 kB / 0.9847 GB, free: 7.883 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.2579, allocations: 75.97 kB / 0.9847 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2579, allocations: 0 / 0.9847 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.01e-07/0.2579, allocations: 0 / 0.9847 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2579, allocations: 0 / 0.9847 GB, free: 7.809 MB / 0.7136 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.0005452/0.2585, allocations: 391.2 kB / 0.9851 GB, free: 7.379 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.2585, allocations: 20.02 kB / 0.9851 GB, free: 7.359 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.2586, allocations: 8.844 kB / 0.9851 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.2587, allocations: 180.1 kB / 0.9853 GB, free: 7.137 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.2587, allocations: 4.375 kB / 0.9853 GB, free: 7.133 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.2588, allocations: 4.375 kB / 0.9853 GB, free: 7.129 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.259, allocations: 87.69 kB / 0.9854 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.259, allocations: 4 kB / 0.9854 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.259, allocations: 4 kB / 0.9854 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.259, allocations: 0 / 0.9854 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.2592, allocations: 55.89 kB / 0.9854 GB, free: 6.969 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000476/0.2597, allocations: 316.8 kB / 0.9858 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2598, allocations: 54.59 kB / 0.9858 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.169e-05/0.2599, allocations: 40.88 kB / 0.9858 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.2599, allocations: 0 / 0.9858 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.26, allocations: 34.56 kB / 0.9859 GB, free: 6.461 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.26, allocations: 0 / 0.9859 GB, free: 6.461 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0003259/0.2603, allocations: 105.7 kB / 0.986 GB, free: 6.352 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/0.2604, allocations: 85.05 kB / 0.9861 GB, free: 6.25 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.2605, allocations: 132.6 kB / 0.9862 GB, free: 6.113 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.2605, allocations: 29.64 kB / 0.9862 GB, free: 6.078 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.326e-05/0.2606, allocations: 104 kB / 0.9863 GB, free: 5.973 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.2606, allocations: 7.812 kB / 0.9863 GB, free: 5.965 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.2607, allocations: 17.72 kB / 0.9863 GB, free: 5.941 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.2608, allocations: 330.8 kB / 0.9867 GB, free: 5.609 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.17e-05/0.2609, allocations: 23.98 kB / 0.9867 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.909e-05/0.261, allocations: 37.7 kB / 0.9867 GB, free: 5.543 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.2611, allocations: 44.83 kB / 0.9868 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2611, allocations: 0 / 0.9868 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002003/0.2613, allocations: 93.62 kB / 0.9868 GB, free: 5.398 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.2614, allocations: 11.98 kB / 0.9869 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.2614, allocations: 0 / 0.9869 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.2614, allocations: 0 / 0.9869 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.756e-05/0.2615, allocations: 8 kB / 0.9869 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.2615, allocations: 0 / 0.9869 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.585e-05/0.2616, allocations: 11.89 kB / 0.9869 GB, free: 5.367 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.2616, allocations: 7.938 kB / 0.9869 GB, free: 5.359 MB / 0.7136 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 9.635e-05/0.2617, allocations: 125.8 kB / 0.987 GB, free: 5.227 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.2617, allocations: 4 kB / 0.987 GB, free: 5.223 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.2618, allocations: 8.25 kB / 0.987 GB, free: 5.211 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2618, allocations: 0 / 0.987 GB, free: 5.211 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2618, allocations: 4 kB / 0.987 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2618, allocations: 0 / 0.987 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.262, allocations: 197.5 kB / 0.9872 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.262, allocations: 0 / 0.9872 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.722e-05/0.2621, allocations: 11.98 kB / 0.9872 GB, free: 4.953 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.2621, allocations: 192 / 0.9872 GB, free: 4.953 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.2621, allocations: 8 kB / 0.9872 GB, free: 4.945 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2621, allocations: 0 / 0.9872 GB, free: 4.945 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2621, allocations: 4 kB / 0.9872 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.2627, allocations: 0.7551 MB / 0.988 GB, free: 4.129 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/0.2628, allocations: 81.02 kB / 0.988 GB, free: 4.031 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.2628, allocations: 11.94 kB / 0.9881 GB, free: 4.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.263, allocations: 7.984 kB / 0.9881 GB, free: 4.012 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.263, allocations: 7.984 kB / 0.9881 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2631, allocations: 15.92 kB / 0.9881 GB, free: 3.988 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.557e-05/0.2631, allocations: 103.1 kB / 0.9882 GB, free: 3.887 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2631, allocations: 0 / 0.9882 GB, free: 3.887 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003113/0.2635, allocations: 16 kB / 0.9882 GB, free: 3.871 MB / 0.7136 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.0001143/0.2636, allocations: 99.25 kB / 0.9883 GB, free: 3.766 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002092/0.2638, allocations: 55.95 kB / 0.9883 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2638, allocations: 0 / 0.9883 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.234e-05/0.2639, allocations: 27.92 kB / 0.9884 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.2642, allocations: 8 kB / 0.9884 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004789/0.2647, allocations: 311.8 kB / 0.9887 GB, free: 3.336 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.265, allocations: 0.6887 MB / 0.9893 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.313e-05/0.265, allocations: 8.125 kB / 0.9894 GB, free: 2.613 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.2651, allocations: 11.44 kB / 0.9894 GB, free: 2.602 MB / 0.7136 GB Notification: Performance of SimCode: time 2.1e-07/0.2651, allocations: 0 / 0.9894 GB, free: 2.602 MB / 0.7136 GB Notification: Performance of Templates: time 0.002784/0.2679, allocations: 0.7756 MB / 0.9901 GB, free: 1.832 MB / 0.7136 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)