Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_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_1.6_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.001735/0.001734, 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.003172/0.003172, allocations: 192.2 kB / 16.13 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.005/3.005, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 64.36 kB / 0.9114 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4155, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003808/0.4193, allocations: 1.734 MB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008901/0.4203, allocations: 450.8 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.004e-05/0.4204, allocations: 0 / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.819e-05/0.4204, allocations: 7.922 kB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.4206, allocations: 11.86 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.4209, allocations: 19.98 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001479/0.421, allocations: 75.78 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.4212, allocations: 39.89 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.4214, allocations: 23.92 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.4215, allocations: 35.84 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.248e-05/0.4215, allocations: 0 / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.975e-05/0.4216, allocations: 7.938 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.649e-05/0.4216, allocations: 19.91 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.723e-05/0.4217, allocations: 35.8 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.4219, allocations: 83.91 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.4219, allocations: 4 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4219, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.4219, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 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.0007537/0.4226, allocations: 391.2 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.142e-05/0.4227, allocations: 8.031 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.4228, allocations: 8.844 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.423, allocations: 176.2 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.4231, allocations: 4.375 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.4231, allocations: 4.375 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.4234, allocations: 99.61 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.4234, allocations: 0 / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.4234, allocations: 0 / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.4234, allocations: 0 / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.4236, allocations: 55.91 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006335/0.4242, allocations: 328.6 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.4244, allocations: 46.56 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.154e-05/0.4245, allocations: 32.94 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.4245, allocations: 0 / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.4246, allocations: 34.59 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.4246, allocations: 0 / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0003976/0.425, allocations: 109.5 kB / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.4251, allocations: 77.11 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.4252, allocations: 134.1 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.4252, allocations: 25.7 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.815e-05/0.4253, allocations: 100 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.4254, allocations: 15.83 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.343e-05/0.4254, allocations: 17.72 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.4256, allocations: 326.8 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-05/0.4257, allocations: 23.98 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.025e-05/0.4258, allocations: 41.7 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.4259, allocations: 48.77 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4259, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002169/0.4261, allocations: 93.56 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4262, allocations: 4 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.4262, allocations: 3.938 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.4262, allocations: 4.031 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.4263, allocations: 8.188 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.4263, allocations: 3.984 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.103e-05/0.4264, allocations: 12 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.4264, allocations: 7.922 kB / 1.072 GB, free: 5.906 MB / 0.8262 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 0.0001202/0.4266, allocations: 117.8 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.4266, allocations: 7.906 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.4267, allocations: 12.25 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.4267, allocations: 4 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4267, allocations: 0 / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4267, allocations: 0 / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.4269, allocations: 189.6 kB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.4269, allocations: 4 kB / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.466e-05/0.427, allocations: 7.984 kB / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.427, allocations: 3.938 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.427, allocations: 4 kB / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.427, allocations: 0 / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.427, allocations: 0 / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.4273, allocations: 183.4 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.4273, allocations: 81.02 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.4274, allocations: 11.92 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.4275, allocations: 4 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.4276, allocations: 15.97 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.4276, allocations: 0 / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.779e-05/0.4277, allocations: 113.3 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4277, allocations: 0 / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002372/0.4279, allocations: 11.94 kB / 1.073 GB, free: 5.051 MB / 0.8262 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 0.0001469/0.4281, allocations: 99.25 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002236/0.4283, allocations: 55.95 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4283, allocations: 0 / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.911e-05/0.4284, allocations: 35.92 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.4288, allocations: 4.562 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004718/0.4292, allocations: 181 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.4296, allocations: 0.6926 MB / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.451e-05/0.4296, allocations: 16.16 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.239e-05/0.4297, allocations: 11.42 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of SimCode: time 3.8e-07/0.4297, allocations: 0 / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of Templates: time 0.003407/0.4331, allocations: 0.7515 MB / 1.075 GB, free: 3.164 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)