Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.821/3.821, allocations: 251.1 MB / 266.7 MB, free: 11.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002396/0.002396, allocations: 182.2 kB / 326.2 MB, free: 2.879 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.975/3.975, allocations: 205.4 MB / 0.5772 GB, free: 20.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001645/0.001644, allocations: 85.41 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007446/0.0007448, allocations: 13.22 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3431, allocations: 106.3 MB / 0.8995 GB, free: 65.53 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3507/0.6939, allocations: 133 MB / 1.029 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005754/0.6945, allocations: 99.92 kB / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0105/0.7051, allocations: 1.509 MB / 1.031 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.837e-06/0.7051, allocations: 0 / 1.031 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.7052, allocations: 4 kB / 1.031 GB, free: 10.75 MB / 0.6823 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.00097/0.7062, allocations: 403 kB / 1.031 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/0.7062, allocations: 8.031 kB / 1.031 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.619e-05/0.7063, allocations: 12.83 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.7066, allocations: 173.2 kB / 1.031 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.7067, allocations: 4.375 kB / 1.031 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.7067, allocations: 8.375 kB / 1.032 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.7072, allocations: 91.94 kB / 1.032 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.7073, allocations: 192 / 1.032 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.7073, allocations: 3.938 kB / 1.032 GB, free: 9.965 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.7073, allocations: 3.938 kB / 1.032 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004347/0.7078, allocations: 59.95 kB / 1.032 GB, free: 9.902 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.7088, allocations: 332.8 kB / 1.032 GB, free: 9.527 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.71, allocations: 58.5 kB / 1.032 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.7103, allocations: 36.94 kB / 1.032 GB, free: 9.422 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.7103, allocations: 0 / 1.032 GB, free: 9.422 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.409e-05/0.7104, allocations: 30.56 kB / 1.032 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 3.025e-06/0.7104, allocations: 0 / 1.032 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.00113/0.7116, allocations: 125.6 kB / 1.032 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.7117, allocations: 81.11 kB / 1.032 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.712, allocations: 131.8 kB / 1.032 GB, free: 9.016 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.7121, allocations: 25.7 kB / 1.032 GB, free: 8.984 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.7122, allocations: 100 kB / 1.033 GB, free: 8.883 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.067e-05/0.7123, allocations: 15.83 kB / 1.033 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.7123, allocations: 0 / 1.033 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002106/0.7125, allocations: 322.8 kB / 1.033 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.7139, allocations: 27.92 kB / 1.033 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.7142, allocations: 49.69 kB / 1.033 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.7145, allocations: 19.98 kB / 1.033 GB, free: 8.441 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.7145, allocations: 4 kB / 1.033 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001906/0.7164, allocations: 97.52 kB / 1.033 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.7165, allocations: 9.594 kB / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.7166, allocations: 0 / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.7166, allocations: 0 / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.7168, allocations: 11.98 kB / 1.033 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.7169, allocations: 4 kB / 1.033 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.7171, allocations: 11.98 kB / 1.033 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.7172, allocations: 7.938 kB / 1.033 GB, free: 8.293 MB / 0.6823 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 0.0002037/0.7174, allocations: 121.8 kB / 1.033 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.547e-05/0.7175, allocations: 7.906 kB / 1.033 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.706e-05/0.7176, allocations: 12.23 kB / 1.033 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.7176, allocations: 0 / 1.033 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.7176, allocations: 0 / 1.033 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.7176, allocations: 4 kB / 1.033 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.7181, allocations: 185.6 kB / 1.033 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.7182, allocations: 3.984 kB / 1.033 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.7184, allocations: 8 kB / 1.033 GB, free: 7.895 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.7184, allocations: 8 kB / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.7184, allocations: 3.984 kB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.7185, allocations: 0 / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/0.7185, allocations: 0 / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006574/0.7192, allocations: 195.3 kB / 1.034 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.421e-05/0.7193, allocations: 81.2 kB / 1.034 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.286e-05/0.7193, allocations: 8 kB / 1.034 GB, free: 7.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.7197, allocations: 15.98 kB / 1.034 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.7198, allocations: 7.984 kB / 1.034 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.7199, allocations: 0 / 1.034 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001512/0.72, allocations: 105.8 kB / 1.034 GB, free: 7.445 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.71e-07/0.72, allocations: 4 kB / 1.034 GB, free: 7.441 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0006237/0.7207, allocations: 8 kB / 1.034 GB, free: 7.434 MB / 0.6823 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.0002299/0.7209, allocations: 107.2 kB / 1.034 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005636/0.7215, allocations: 59.91 kB / 1.034 GB, free: 7.258 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.7216, allocations: 0 / 1.034 GB, free: 7.258 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.7218, allocations: 35.98 kB / 1.034 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/0.7225, allocations: 8 kB / 1.034 GB, free: 7.215 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009073/0.7234, allocations: 198.8 kB / 1.034 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005046/0.724, allocations: 0.7003 MB / 1.035 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001429/0.7241, allocations: 12.17 kB / 1.035 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.83e-05/0.7242, allocations: 7.438 kB / 1.035 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of SimCode: time 1.673e-06/0.7243, allocations: 0 / 1.035 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of Templates: time 0.006596/0.7309, allocations: 0.7197 MB / 1.036 GB, free: 5.547 MB / 0.6823 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)