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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.0009941, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009643/0.0009644, allocations: 189.8 kB / 16.13 MB, free: 6.652 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.142/1.142, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.299/1.299, allocations: 251.7 MB / 0.5088 GB, free: 3.266 MB / 414.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.00127/0.00127, allocations: 63.89 kB / 0.6216 GB, free: 1.98 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.377, allocations: 104.7 MB / 0.7238 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002619/0.3797, allocations: 1.732 MB / 0.7255 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006771/0.3804, allocations: 0.4915 MB / 0.726 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.695e-05/0.3804, allocations: 4 kB / 0.726 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.468e-05/0.3805, allocations: 7.984 kB / 0.726 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.772e-05/0.3806, allocations: 7.875 kB / 0.726 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001424/0.3807, allocations: 27.91 kB / 0.726 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.488e-05/0.3808, allocations: 79.72 kB / 0.7261 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.591e-05/0.3809, allocations: 23.98 kB / 0.7261 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.606e-05/0.381, allocations: 31.86 kB / 0.7262 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.614e-05/0.3811, allocations: 35.83 kB / 0.7262 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.3811, allocations: 4 kB / 0.7262 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.517e-05/0.3811, allocations: 4 kB / 0.7262 GB, free: 10.83 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.3812, allocations: 15.92 kB / 0.7262 GB, free: 10.82 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.149e-05/0.3812, allocations: 31.8 kB / 0.7262 GB, free: 10.79 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.403e-05/0.3813, allocations: 77.86 kB / 0.7263 GB, free: 10.71 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.3813, allocations: 0 / 0.7263 GB, free: 10.71 MB / 0.545 GB Notification: Performance of FrontEnd: time 5.31e-07/0.3813, allocations: 0 / 0.7263 GB, free: 10.71 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.3813, allocations: 4 kB / 0.7263 GB, free: 10.71 MB / 0.545 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.0004363/0.3818, allocations: 391.2 kB / 0.7267 GB, free: 10.28 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.3818, allocations: 15.97 kB / 0.7267 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.496e-05/0.3818, allocations: 8.844 kB / 0.7267 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.382, allocations: 180.1 kB / 0.7269 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.382, allocations: 4.375 kB / 0.7269 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.382, allocations: 4.375 kB / 0.7269 GB, free: 10.03 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.3822, allocations: 95.67 kB / 0.727 GB, free: 9.926 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.3822, allocations: 3.938 kB / 0.727 GB, free: 9.922 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3822, allocations: 8 kB / 0.727 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3822, allocations: 0 / 0.727 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.3824, allocations: 47.97 kB / 0.727 GB, free: 9.867 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004094/0.3828, allocations: 332.5 kB / 0.7274 GB, free: 9.492 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.3829, allocations: 50.56 kB / 0.7274 GB, free: 9.434 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.387e-05/0.383, allocations: 28.94 kB / 0.7274 GB, free: 9.402 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.383, allocations: 0 / 0.7274 GB, free: 9.402 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.3831, allocations: 34.56 kB / 0.7275 GB, free: 9.359 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.3831, allocations: 3.938 kB / 0.7275 GB, free: 9.355 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0002912/0.3834, allocations: 101.7 kB / 0.7276 GB, free: 9.25 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.3834, allocations: 81.11 kB / 0.7277 GB, free: 9.152 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.427e-05/0.3835, allocations: 137 kB / 0.7278 GB, free: 9.012 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.3835, allocations: 25.7 kB / 0.7278 GB, free: 8.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.553e-05/0.3836, allocations: 100.1 kB / 0.7279 GB, free: 8.879 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.3836, allocations: 11.81 kB / 0.7279 GB, free: 8.867 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.3836, allocations: 17.7 kB / 0.7279 GB, free: 8.844 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.826e-05/0.3837, allocations: 322.8 kB / 0.7282 GB, free: 8.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.468e-05/0.3838, allocations: 23.98 kB / 0.7283 GB, free: 8.496 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.716e-05/0.3839, allocations: 37.7 kB / 0.7283 GB, free: 8.453 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.384, allocations: 52.98 kB / 0.7283 GB, free: 8.398 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.384, allocations: 0 / 0.7283 GB, free: 8.398 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000173/0.3842, allocations: 93.5 kB / 0.7284 GB, free: 8.301 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.3842, allocations: 4 kB / 0.7284 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.3842, allocations: 4 kB / 0.7284 GB, free: 8.293 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.3842, allocations: 0 / 0.7284 GB, free: 8.293 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.3843, allocations: 7.984 kB / 0.7285 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.3843, allocations: 4 kB / 0.7285 GB, free: 8.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.048e-05/0.3844, allocations: 15.92 kB / 0.7285 GB, free: 8.266 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.3844, allocations: 11.88 kB / 0.7285 GB, free: 8.254 MB / 0.545 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.42e-05/0.3845, allocations: 113.8 kB / 0.7286 GB, free: 8.133 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.3846, allocations: 8.094 kB / 0.7286 GB, free: 8.125 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.3846, allocations: 8.25 kB / 0.7286 GB, free: 8.113 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3846, allocations: 3.984 kB / 0.7286 GB, free: 8.109 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3846, allocations: 0 / 0.7286 GB, free: 8.109 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.3846, allocations: 4 kB / 0.7286 GB, free: 8.105 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.3848, allocations: 193.6 kB / 0.7288 GB, free: 7.867 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.3848, allocations: 0 / 0.7288 GB, free: 7.867 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.219e-05/0.3849, allocations: 15.92 kB / 0.7288 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3849, allocations: 0 / 0.7288 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3849, allocations: 0 / 0.7288 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3849, allocations: 0 / 0.7288 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3849, allocations: 4 kB / 0.7288 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002013/0.3851, allocations: 179.4 kB / 0.729 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.069e-05/0.3851, allocations: 85.09 kB / 0.7291 GB, free: 7.555 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.3852, allocations: 3.938 kB / 0.7291 GB, free: 7.551 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.963e-05/0.3853, allocations: 15.98 kB / 0.7291 GB, free: 7.535 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.3853, allocations: 7.984 kB / 0.7291 GB, free: 7.527 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.3853, allocations: 64 / 0.7291 GB, free: 7.527 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.13e-05/0.3854, allocations: 103.2 kB / 0.7292 GB, free: 7.426 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.3854, allocations: 0 / 0.7292 GB, free: 7.426 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002125/0.3856, allocations: 15.91 kB / 0.7292 GB, free: 7.41 MB / 0.545 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 8.843e-05/0.3857, allocations: 103.2 kB / 0.7293 GB, free: 7.301 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001868/0.3859, allocations: 59.89 kB / 0.7294 GB, free: 7.242 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3859, allocations: 4 kB / 0.7294 GB, free: 7.238 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.078e-05/0.386, allocations: 27.98 kB / 0.7294 GB, free: 7.211 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3863, allocations: 0 / 0.7294 GB, free: 7.211 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003589/0.3866, allocations: 200.8 kB / 0.7296 GB, free: 6.988 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.3869, allocations: 0.6926 MB / 0.7303 GB, free: 6.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.573e-05/0.3869, allocations: 7.984 kB / 0.7303 GB, free: 6.262 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.387, allocations: 11.44 kB / 0.7303 GB, free: 6.25 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.387, allocations: 0 / 0.7303 GB, free: 6.25 MB / 0.545 GB Notification: Performance of Templates: time 0.002482/0.3895, allocations: 0.7557 MB / 0.731 GB, free: 5.535 MB / 0.545 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)