Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.622/2.622, allocations: 287.3 MB / 302.3 MB, free: 8.336 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.001618/0.001618, allocations: 190.1 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.304/2.304, allocations: 205.4 MB / 0.6295 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001636/0.001636, allocations: 94 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005134/0.0005136, allocations: 16 kB / 0.8656 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2554, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002023/0.2575, allocations: 1.366 MB / 0.9795 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008687/0.2584, allocations: 456.2 kB / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.017e-05/0.2585, allocations: 4 kB / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.952e-05/0.2585, allocations: 3.984 kB / 0.98 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.659e-05/0.2586, allocations: 19.91 kB / 0.98 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.2588, allocations: 19.97 kB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.898e-05/0.2589, allocations: 47.88 kB / 0.9801 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.259, allocations: 19.98 kB / 0.9801 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.2591, allocations: 31.84 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.189e-05/0.2592, allocations: 31.84 kB / 0.9801 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.2593, allocations: 8 kB / 0.9801 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.2593, allocations: 3.938 kB / 0.9801 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.2593, allocations: 11.92 kB / 0.9802 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.2593, allocations: 33.7 kB / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.2595, allocations: 64.09 kB / 0.9802 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2595, allocations: 0 / 0.9802 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2595, allocations: 0 / 0.9802 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.78e-06/0.2595, allocations: 0 / 0.9802 GB, free: 26.25 MB / 0.6198 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.0005721/0.2601, allocations: 379.1 kB / 0.9806 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2601, allocations: 15.95 kB / 0.9806 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.2602, allocations: 15.91 kB / 0.9806 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.2603, allocations: 181.2 kB / 0.9808 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.2604, allocations: 4 kB / 0.9808 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.2604, allocations: 4 kB / 0.9808 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.2607, allocations: 99.31 kB / 0.9809 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2607, allocations: 0 / 0.9809 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.2608, allocations: 0 / 0.9809 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.2608, allocations: 4 kB / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.261, allocations: 51.97 kB / 0.981 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.2616, allocations: 336.6 kB / 0.9813 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.2618, allocations: 58.55 kB / 0.9813 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2619, allocations: 0 / 0.9813 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.2619, allocations: 34.56 kB / 0.9814 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 1.423e-06/0.2619, allocations: 0 / 0.9814 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0004933/0.2624, allocations: 121.6 kB / 0.9815 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.2624, allocations: 81.09 kB / 0.9816 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.2626, allocations: 126.1 kB / 0.9817 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2626, allocations: 25.7 kB / 0.9817 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/0.2627, allocations: 100 kB / 0.9818 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.2627, allocations: 15.84 kB / 0.9818 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.664e-06/0.2627, allocations: 0 / 0.9818 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.2628, allocations: 322.8 kB / 0.9821 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.2629, allocations: 23.98 kB / 0.9822 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.2631, allocations: 45.64 kB / 0.9822 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.2632, allocations: 28.02 kB / 0.9822 GB, free: 24 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2632, allocations: 0 / 0.9822 GB, free: 24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003102/0.2635, allocations: 105.4 kB / 0.9823 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2636, allocations: 4 kB / 0.9823 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2636, allocations: 0 / 0.9823 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.2636, allocations: 7.953 kB / 0.9823 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.2638, allocations: 15.98 kB / 0.9824 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2638, allocations: 0 / 0.9824 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.2639, allocations: 15.98 kB / 0.9824 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.264, allocations: 0 / 0.9824 GB, free: 23.84 MB / 0.6198 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 9.117e-05/0.2641, allocations: 113.8 kB / 0.9825 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.2641, allocations: 7.906 kB / 0.9825 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.487e-05/0.2642, allocations: 12.25 kB / 0.9825 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2642, allocations: 8.141 kB / 0.9825 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2642, allocations: 0 / 0.9825 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2642, allocations: 3.984 kB / 0.9825 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.2644, allocations: 185.6 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2645, allocations: 4.188 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.2646, allocations: 15.98 kB / 0.9827 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2646, allocations: 0 / 0.9827 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.2646, allocations: 0 / 0.9827 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2646, allocations: 3.938 kB / 0.9827 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2646, allocations: 7.953 kB / 0.9827 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.265, allocations: 183.4 kB / 0.9829 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.08e-05/0.265, allocations: 81.02 kB / 0.983 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.2651, allocations: 11.98 kB / 0.983 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.2652, allocations: 16 kB / 0.983 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.2653, allocations: 11.97 kB / 0.983 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.2653, allocations: 3.953 kB / 0.983 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.223e-05/0.2654, allocations: 100.5 kB / 0.9831 GB, free: 23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2654, allocations: 0 / 0.9831 GB, free: 23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000296/0.2657, allocations: 15.94 kB / 0.9831 GB, free: 22.98 MB / 0.6198 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.0001174/0.2659, allocations: 99.25 kB / 0.9832 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003151/0.2662, allocations: 63.89 kB / 0.9833 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.2662, allocations: 4 kB / 0.9833 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.2663, allocations: 31.92 kB / 0.9833 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.2666, allocations: 8 kB / 0.9833 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004417/0.2671, allocations: 198.5 kB / 0.9835 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.2672, allocations: 0.6965 MB / 0.9842 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.299e-05/0.2673, allocations: 4 kB / 0.9842 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.239e-05/0.2674, allocations: 15.38 kB / 0.9842 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of SimCode: time 6.41e-07/0.2674, allocations: 0 / 0.9842 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of Templates: time 0.004424/0.2718, allocations: 0.7104 MB / 0.9849 GB, free: 21.11 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)