Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.805/4.805, allocations: 0.5623 GB / 0.5769 GB, free: 3.324 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002384/0.002383, allocations: 354 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.933/3.933, allocations: 410.7 MB / 1.112 GB, free: 5.914 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001796/0.001795, allocations: 178.2 kB / 1.225 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004996/0.0005, allocations: 12 kB / 1.348 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5868/0.5873, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001657/0.589, allocations: 1.364 MB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0007214/0.5898, allocations: 468.1 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.682e-05/0.5899, allocations: 4 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.91e-05/0.5899, allocations: 4.906 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 8.718e-05/0.59, allocations: 16.75 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.5902, allocations: 15.98 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 9.586e-05/0.5903, allocations: 72.34 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.5904, allocations: 18.17 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 9.962e-05/0.5905, allocations: 31.84 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.948e-05/0.5906, allocations: 28.97 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.5907, allocations: 3.938 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 1.538e-05/0.5907, allocations: 4 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.756e-05/0.5907, allocations: 16.7 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.5907, allocations: 37.64 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 8.667e-05/0.5908, allocations: 52.2 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.5909, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.109e-06/0.5909, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.143e-06/0.5909, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 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.00047/0.5914, allocations: 393.8 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.5914, allocations: 15.61 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.565e-05/0.5915, allocations: 9.125 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.5916, allocations: 182.5 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.5916, allocations: 0 / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.5917, allocations: 12.81 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.5919, allocations: 89.31 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.56e-06/0.5919, allocations: 0 / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.5919, allocations: 4.719 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-06/0.592, allocations: 0 / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.5922, allocations: 59.08 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005211/0.5927, allocations: 332.1 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.5929, allocations: 57.12 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.593, allocations: 32.88 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.5931, allocations: 4.609 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.5931, allocations: 37.03 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=4): time 2.577e-06/0.5931, allocations: 0 / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=4): time 0.000424/0.5935, allocations: 118.9 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.5936, allocations: 78.11 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.5937, allocations: 134 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.5937, allocations: 28.2 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.5938, allocations: 92.14 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.5938, allocations: 19.8 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.244e-06/0.5938, allocations: 0 / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.487e-05/0.5939, allocations: 314.8 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.594, allocations: 30.58 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.5942, allocations: 45.69 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.5943, allocations: 25.55 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.5943, allocations: 1.406 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002732/0.5946, allocations: 94.33 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.5946, allocations: 12.28 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.965e-06/0.5946, allocations: 3.953 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.5947, allocations: 4.562 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.5948, allocations: 14.11 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.109e-06/0.5948, allocations: 0 / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.5949, allocations: 27.8 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.595, allocations: 2.547 kB / 1.465 GB, free: 279.8 MB / 0.8542 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.0001028/0.5951, allocations: 117.3 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.561e-05/0.5951, allocations: 8.906 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.5952, allocations: 16.23 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.5952, allocations: 4.453 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.661e-06/0.5952, allocations: 1.156 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.536e-06/0.5952, allocations: 4 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.5954, allocations: 189.6 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.538e-06/0.5955, allocations: 1.312 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.952e-05/0.5956, allocations: 8 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.785e-06/0.5956, allocations: 1.219 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.5956, allocations: 3.984 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.148e-06/0.5956, allocations: 0 / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.422e-06/0.5956, allocations: 3.953 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.5959, allocations: 192.6 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.784e-05/0.596, allocations: 85.64 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.596, allocations: 4 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.5962, allocations: 17.77 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.5962, allocations: 11.94 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.974e-06/0.5962, allocations: 1.625 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.777e-05/0.5963, allocations: 103.2 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.92e-07/0.5963, allocations: 0 / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003154/0.5966, allocations: 12 kB / 1.466 GB, free: 278.9 MB / 0.8542 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.0001011/0.5968, allocations: 98.72 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.597, allocations: 59.97 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5971, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.5972, allocations: 37.45 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.5975, allocations: 6.719 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004023/0.598, allocations: 200.5 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001357/0.5981, allocations: 0.6963 MB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.563e-05/0.5982, allocations: 9.391 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.948e-05/0.5982, allocations: 7.438 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of SimCode: time 1.778e-06/0.5982, allocations: 0 / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.003374/0.6016, allocations: 0.7257 MB / 1.468 GB, free: 277.1 MB / 0.8542 GB