Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.79/1.79, allocations: 288.3 MB / 303.2 MB, free: 8.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 182.1 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.4 MB / 0.6306 GB, free: 9.988 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009813/0.0009812, allocations: 94.92 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004787/0.0004792, allocations: 15.91 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2803, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002583/0.2829, allocations: 1.911 MB / 0.9813 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001757/0.2847, allocations: 0.9673 MB / 0.9822 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003312/0.2851, allocations: 11.94 kB / 0.9823 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002399/0.2853, allocations: 51.56 kB / 0.9823 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003558/0.2857, allocations: 35.88 kB / 0.9823 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.2864, allocations: 175.7 kB / 0.9825 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006399/0.287, allocations: 363.9 kB / 0.9829 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006041/0.2876, allocations: 348.4 kB / 0.9832 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.2879, allocations: 139.4 kB / 0.9833 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.2882, allocations: 163.1 kB / 0.9835 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.86e-05/0.2882, allocations: 20 kB / 0.9835 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.2884, allocations: 28 kB / 0.9835 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.2885, allocations: 87.72 kB / 0.9836 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.34e-05/0.2886, allocations: 97.45 kB / 0.9837 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.289, allocations: 0.534 MB / 0.9842 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.289, allocations: 0 / 0.9842 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.934e-06/0.2891, allocations: 0 / 0.9842 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.262e-05/0.2891, allocations: 4 kB / 0.9842 GB, free: 22.75 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001219/0.2903, allocations: 0.6233 MB / 0.9848 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.2904, allocations: 16.02 kB / 0.9848 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.2905, allocations: 63.38 kB / 0.9849 GB, free: 22 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004509/0.291, allocations: 336.9 kB / 0.9852 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.578e-05/0.2911, allocations: 45.31 kB / 0.9853 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.2912, allocations: 55.94 kB / 0.9853 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009222/0.2921, allocations: 0.5657 MB / 0.9859 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.2921, allocations: 3.938 kB / 0.9859 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.2922, allocations: 24 kB / 0.9859 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.844e-05/0.2922, allocations: 24.97 kB / 0.9859 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007552/0.293, allocations: 423.7 kB / 0.9863 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.2953, allocations: 1.923 MB / 0.9882 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/0.2958, allocations: 357.3 kB / 0.9885 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.816e-05/0.2959, allocations: 15.98 kB / 0.9886 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003303/0.2962, allocations: 226 kB / 0.9888 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.277e-06/0.2962, allocations: 0 / 0.9888 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.0007602/0.297, allocations: 490.2 kB / 0.9892 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.2971, allocations: 63.14 kB / 0.9893 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.2973, allocations: 233.8 kB / 0.9895 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/0.2973, allocations: 53.69 kB / 0.9896 GB, free: 17 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.2974, allocations: 220.7 kB / 0.9898 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.2975, allocations: 122.4 kB / 0.9899 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.145e-05/0.2975, allocations: 12 kB / 0.9899 GB, free: 16.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.616e-05/0.2976, allocations: 342.8 kB / 0.9902 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.2979, allocations: 157.2 kB / 0.9904 GB, free: 16.15 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.2982, allocations: 292.7 kB / 0.9907 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.2985, allocations: 170.1 kB / 0.9908 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2985, allocations: 8 kB / 0.9908 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007247/0.2992, allocations: 0.4949 MB / 0.9913 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.2992, allocations: 10.03 kB / 0.9913 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.2993, allocations: 8 kB / 0.9913 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.2993, allocations: 7.984 kB / 0.9914 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.2995, allocations: 63.84 kB / 0.9914 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.2995, allocations: 11.94 kB / 0.9914 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.2998, allocations: 67.5 kB / 0.9915 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.2998, allocations: 20 kB / 0.9915 GB, free: 14.95 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0002367/0.3001, allocations: 234.9 kB / 0.9917 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.924e-05/0.3001, allocations: 23.72 kB / 0.9918 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.3008, allocations: 435.4 kB / 0.9922 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3008, allocations: 4 kB / 0.9922 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3008, allocations: 0 / 0.9922 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3008, allocations: 3.984 kB / 0.9922 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.3021, allocations: 1.138 MB / 0.9933 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3021, allocations: 0 / 0.9933 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.3023, allocations: 39.91 kB / 0.9933 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.3023, allocations: 4 kB / 0.9933 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.3023, allocations: 8 kB / 0.9933 GB, free: 12.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3023, allocations: 4 kB / 0.9933 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3023, allocations: 0 / 0.9933 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000558/0.3029, allocations: 0.4996 MB / 0.9938 GB, free: 12.47 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.303, allocations: 108.7 kB / 0.9939 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/0.303, allocations: 12 kB / 0.9939 GB, free: 12.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.3032, allocations: 27.92 kB / 0.994 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.3034, allocations: 64.34 kB / 0.994 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.3034, allocations: 23.98 kB / 0.9941 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.383e-05/0.3035, allocations: 140.4 kB / 0.9942 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3035, allocations: 0 / 0.9942 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004006/0.3039, allocations: 107.6 kB / 0.9943 GB, free: 11.98 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000206/0.3041, allocations: 139.2 kB / 0.9944 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006323/0.3048, allocations: 441.5 kB / 0.9948 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3048, allocations: 0 / 0.9948 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.3051, allocations: 210.4 kB / 0.995 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3054, allocations: 48.8 kB / 0.9951 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.3066, allocations: 0.8403 MB / 0.9959 GB, free: 10.29 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.3069, allocations: 0.8311 MB / 0.9967 GB, free: 9.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002093/0.3071, allocations: 67.23 kB / 0.9968 GB, free: 9.367 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.3072, allocations: 35.42 kB / 0.9968 GB, free: 9.332 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.3072, allocations: 0 / 0.9968 GB, free: 9.332 MB / 0.6198 GB Notification: Performance of Templates: time 0.008601/0.3158, allocations: 3.735 MB / 1 GB, free: 5.648 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)