Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.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_3.0.0_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.0008295/0.0008299, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005587/0.005587, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.459/1.459, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.916/2.916, allocations: 473.4 MB / 0.7469 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004312/0.0004312, allocations: 14.34 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4445/0.445, allocations: 162.2 MB / 1.074 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002209/0.4472, allocations: 1.389 MB / 1.075 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007755/0.448, allocations: 442.9 kB / 1.076 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.452e-05/0.4481, allocations: 0 / 1.076 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.3e-05/0.4481, allocations: 7.922 kB / 1.076 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.916e-05/0.4482, allocations: 19.86 kB / 1.076 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001546/0.4484, allocations: 23.97 kB / 1.076 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.4485, allocations: 71.78 kB / 1.076 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.4486, allocations: 35.94 kB / 1.076 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.4487, allocations: 31.8 kB / 1.076 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.495e-05/0.4488, allocations: 27.86 kB / 1.076 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.4489, allocations: 0 / 1.076 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.005e-05/0.4489, allocations: 4 kB / 1.076 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.989e-05/0.4489, allocations: 15.91 kB / 1.076 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.6e-05/0.449, allocations: 53.5 kB / 1.076 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.4492, allocations: 79.95 kB / 1.076 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4492, allocations: 0 / 1.076 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.315e-06/0.4492, allocations: 4 kB / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4492, allocations: 0 / 1.076 GB, free: 5.348 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.0006782/0.4499, allocations: 379.3 kB / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/0.4499, allocations: 12.03 kB / 1.077 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.158e-05/0.45, allocations: 8.844 kB / 1.077 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.4502, allocations: 180.1 kB / 1.077 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.4503, allocations: 8.375 kB / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.4503, allocations: 4.375 kB / 1.077 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002692/0.4506, allocations: 95.62 kB / 1.077 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.4506, allocations: 0 / 1.077 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.4506, allocations: 8 kB / 1.077 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.4506, allocations: 0 / 1.077 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.4508, allocations: 55.97 kB / 1.077 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.4515, allocations: 332.7 kB / 1.077 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.4517, allocations: 54.56 kB / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.95e-05/0.4518, allocations: 29.03 kB / 1.077 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.4518, allocations: 3.938 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.4519, allocations: 42.48 kB / 1.077 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.644e-06/0.4519, allocations: 0 / 1.077 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0004087/0.4523, allocations: 113.6 kB / 1.078 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.4524, allocations: 81.11 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.4525, allocations: 132.4 kB / 1.078 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.4525, allocations: 25.7 kB / 1.078 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.293e-05/0.4526, allocations: 100 kB / 1.078 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.4527, allocations: 19.73 kB / 1.078 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.4527, allocations: 13.72 kB / 1.078 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4529, allocations: 322.8 kB / 1.078 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.85e-05/0.453, allocations: 27.98 kB / 1.078 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.227e-05/0.4531, allocations: 45.64 kB / 1.078 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.4533, allocations: 60.95 kB / 1.078 GB, free: 3 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4533, allocations: 4.031 kB / 1.078 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002054/0.4535, allocations: 89.66 kB / 1.078 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.4535, allocations: 8 kB / 1.078 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.4535, allocations: 0 / 1.078 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4535, allocations: 0 / 1.078 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.4537, allocations: 15.98 kB / 1.078 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.4537, allocations: 3.938 kB / 1.078 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.556e-05/0.4538, allocations: 23.89 kB / 1.078 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.4538, allocations: 3.938 kB / 1.078 GB, free: 2.848 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.0001221/0.4539, allocations: 113.8 kB / 1.079 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.4539, allocations: 4 kB / 1.079 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.212e-05/0.454, allocations: 12.25 kB / 1.079 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.454, allocations: 4 kB / 1.079 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.454, allocations: 0 / 1.079 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.454, allocations: 0 / 1.079 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.4542, allocations: 193.5 kB / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4543, allocations: 0 / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.966e-05/0.4543, allocations: 11.98 kB / 1.079 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.4543, allocations: 0 / 1.079 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.4544, allocations: 8.125 kB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4544, allocations: 4 kB / 1.079 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4544, allocations: 0 / 1.079 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.4546, allocations: 195.4 kB / 1.079 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.87e-05/0.4547, allocations: 85.02 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.4547, allocations: 3.984 kB / 1.079 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.4548, allocations: 19.98 kB / 1.079 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/0.4549, allocations: 11.98 kB / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.4549, allocations: 0 / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.083e-05/0.455, allocations: 99.2 kB / 1.079 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.455, allocations: 3.938 kB / 1.079 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002247/0.4552, allocations: 19.94 kB / 1.079 GB, free: 1.973 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.0001328/0.4554, allocations: 99.25 kB / 1.079 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002335/0.4556, allocations: 68.02 kB / 1.079 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4556, allocations: 0 / 1.079 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.4557, allocations: 31.92 kB / 1.079 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.456, allocations: 12.66 kB / 1.079 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003973/0.4564, allocations: 204 kB / 1.08 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.4568, allocations: 0.6887 MB / 1.08 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.985e-05/0.4568, allocations: 8 kB / 1.08 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.4568, allocations: 15.42 kB / 1.08 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.4568, allocations: 0 / 1.08 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of Templates: time 0.003204/0.4601, allocations: 0.7393 MB / 1.081 GB, free: 76 kB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)