Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.347/1.347, allocations: 252 MB / 267.9 MB, free: 10.92 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.0009517/0.0009519, allocations: 180.4 kB / 327.6 MB, free: 2.164 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.4 MB / 0.5785 GB, free: 20.18 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.000771/0.000771, allocations: 92.12 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004647/0.0004652, allocations: 14 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2307, allocations: 106.3 MB / 0.9012 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1658/0.3966, allocations: 133.2 MB / 1.031 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.397, allocations: 95.94 kB / 1.031 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004441/0.4015, allocations: 1.516 MB / 1.033 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.945e-06/0.4015, allocations: 0 / 1.033 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.4015, allocations: 0 / 1.033 GB, free: 8.738 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.0004878/0.402, allocations: 400.8 kB / 1.033 GB, free: 8.297 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.4021, allocations: 8.031 kB / 1.033 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.864e-05/0.4021, allocations: 8.844 kB / 1.033 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.4023, allocations: 188.1 kB / 1.033 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.4023, allocations: 384 / 1.033 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.4023, allocations: 4.375 kB / 1.033 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.4026, allocations: 95.94 kB / 1.034 GB, free: 7.949 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4026, allocations: 4.125 kB / 1.034 GB, free: 7.945 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.4026, allocations: 7.922 kB / 1.034 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.4026, allocations: 0 / 1.034 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001657/0.4028, allocations: 59.97 kB / 1.034 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/0.4033, allocations: 332.6 kB / 1.034 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.4035, allocations: 58.55 kB / 1.034 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.474e-05/0.4036, allocations: 32.94 kB / 1.034 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.4036, allocations: 0 / 1.034 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.4036, allocations: 34.56 kB / 1.034 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.4037, allocations: 4 kB / 1.034 GB, free: 7.355 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0003368/0.404, allocations: 117.6 kB / 1.034 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.4041, allocations: 77.11 kB / 1.034 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.4042, allocations: 127.4 kB / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.4042, allocations: 33.69 kB / 1.034 GB, free: 6.965 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.4043, allocations: 92.14 kB / 1.034 GB, free: 6.871 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.4043, allocations: 15.73 kB / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-06/0.4043, allocations: 4 kB / 1.034 GB, free: 6.852 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4044, allocations: 318.8 kB / 1.035 GB, free: 6.531 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.958e-05/0.4045, allocations: 27.98 kB / 1.035 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.507e-05/0.4046, allocations: 45.7 kB / 1.035 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.4048, allocations: 56.95 kB / 1.035 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4048, allocations: 4 kB / 1.035 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001983/0.405, allocations: 105.5 kB / 1.035 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.405, allocations: 4 kB / 1.035 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.405, allocations: 0 / 1.035 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.405, allocations: 0 / 1.035 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.4051, allocations: 11.98 kB / 1.035 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.4051, allocations: 4 kB / 1.035 GB, free: 6.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.011e-05/0.4052, allocations: 15.98 kB / 1.035 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.4053, allocations: 4 kB / 1.035 GB, free: 6.242 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 8.776e-05/0.4053, allocations: 117.8 kB / 1.035 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.4054, allocations: 11.84 kB / 1.035 GB, free: 6.105 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.4054, allocations: 12.25 kB / 1.035 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4054, allocations: 0 / 1.035 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4054, allocations: 0 / 1.035 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4054, allocations: 8 kB / 1.035 GB, free: 6.082 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.4056, allocations: 185.6 kB / 1.035 GB, free: 5.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4056, allocations: 0 / 1.035 GB, free: 5.852 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.984e-05/0.4057, allocations: 15.92 kB / 1.035 GB, free: 5.836 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.4057, allocations: 4 kB / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.4057, allocations: 0 / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4058, allocations: 0 / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4058, allocations: 0 / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.406, allocations: 193.2 kB / 1.036 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.4061, allocations: 81.09 kB / 1.036 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.4061, allocations: 4 kB / 1.036 GB, free: 5.527 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.968e-05/0.4062, allocations: 15.98 kB / 1.036 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.4063, allocations: 12.22 kB / 1.036 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.4063, allocations: 4.062 kB / 1.036 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.203e-05/0.4063, allocations: 105.9 kB / 1.036 GB, free: 5.395 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4063, allocations: 0 / 1.036 GB, free: 5.395 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002153/0.4066, allocations: 11.91 kB / 1.036 GB, free: 5.383 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.0001302/0.4067, allocations: 115.2 kB / 1.036 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002064/0.4069, allocations: 63.91 kB / 1.036 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4069, allocations: 0 / 1.036 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 7.878e-05/0.407, allocations: 27.98 kB / 1.036 GB, free: 5.168 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.4073, allocations: 8 kB / 1.036 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/0.4077, allocations: 202.7 kB / 1.036 GB, free: 4.938 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.408, allocations: 0.6887 MB / 1.037 GB, free: 4.223 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.837e-05/0.408, allocations: 11.98 kB / 1.037 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.4081, allocations: 11.44 kB / 1.037 GB, free: 4.199 MB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/0.4081, allocations: 4 kB / 1.037 GB, free: 4.195 MB / 0.6823 GB Notification: Performance of Templates: time 0.002945/0.411, allocations: 0.7258 MB / 1.038 GB, free: 3.508 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)