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.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.7.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.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.43/1.43, allocations: 251.5 MB / 267.4 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009921/0.000992, allocations: 182.7 kB / 326.5 MB, free: 2.688 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.928/1.928, allocations: 205 MB / 0.5766 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008112/0.000811, allocations: 94.33 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003211, allocations: 12.75 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2628, allocations: 105.4 MB / 0.8968 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002659/0.2655, allocations: 2.016 MB / 0.8987 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00184/0.2674, allocations: 1.025 MB / 0.8997 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003696/0.2678, allocations: 11.94 kB / 0.8997 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002271/0.268, allocations: 35.66 kB / 0.8998 GB, free: 65.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.2684, allocations: 31.78 kB / 0.8998 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.2691, allocations: 255.7 kB / 0.9 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006183/0.2697, allocations: 0.5699 MB / 0.9006 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005294/0.2702, allocations: 381.7 kB / 0.901 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.2705, allocations: 151.3 kB / 0.9011 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.2707, allocations: 171 kB / 0.9013 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.2708, allocations: 20 kB / 0.9013 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.2709, allocations: 35.92 kB / 0.9013 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.2711, allocations: 87.67 kB / 0.9014 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2712, allocations: 190.8 kB / 0.9016 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004098/0.2717, allocations: 0.5261 MB / 0.9021 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2717, allocations: 4 kB / 0.9021 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.565e-06/0.2717, allocations: 3.938 kB / 0.9021 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.131e-05/0.2717, allocations: 0 / 0.9021 GB, free: 62.64 MB / 0.6042 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.001095/0.2728, allocations: 0.6306 MB / 0.9027 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.2729, allocations: 8.031 kB / 0.9027 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.273, allocations: 52.36 kB / 0.9028 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.2735, allocations: 344.2 kB / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.519e-05/0.2735, allocations: 45.69 kB / 0.9032 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.2736, allocations: 56.36 kB / 0.9032 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008561/0.2745, allocations: 0.5777 MB / 0.9038 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.2745, allocations: 7.938 kB / 0.9038 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.2745, allocations: 20 kB / 0.9038 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.2746, allocations: 17 kB / 0.9038 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.2753, allocations: 435.7 kB / 0.9042 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.2772, allocations: 1.922 MB / 0.9061 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005059/0.2778, allocations: 359 kB / 0.9065 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.278, allocations: 188.8 kB / 0.9066 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.576e-05/0.2781, allocations: 15.94 kB / 0.9066 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.2784, allocations: 222.2 kB / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.344e-06/0.2784, allocations: 0 / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0008207/0.2793, allocations: 493.2 kB / 0.9073 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.2793, allocations: 59.16 kB / 0.9074 GB, free: 57 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.2795, allocations: 241.7 kB / 0.9076 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.2795, allocations: 49.7 kB / 0.9077 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.2797, allocations: 220.7 kB / 0.9079 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.139e-05/0.2797, allocations: 110.5 kB / 0.908 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-05/0.2798, allocations: 93.66 kB / 0.9081 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.914e-05/0.2799, allocations: 346.8 kB / 0.9084 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.2802, allocations: 161.2 kB / 0.9086 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.2805, allocations: 300.7 kB / 0.9088 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004753/0.2809, allocations: 398.5 kB / 0.9092 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.281, allocations: 4 kB / 0.9092 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006966/0.2817, allocations: 0.5063 MB / 0.9097 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.2817, allocations: 8 kB / 0.9097 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2817, allocations: 7.984 kB / 0.9097 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.2817, allocations: 4 kB / 0.9097 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.282, allocations: 63.84 kB / 0.9098 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.282, allocations: 4 kB / 0.9098 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.2822, allocations: 71.81 kB / 0.9099 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.2823, allocations: 20 kB / 0.9099 GB, free: 54.29 MB / 0.6042 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,con.t4.enableFire,con.t4.condition,con.t3.enableFire,con.t3.condition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002323/0.2825, allocations: 234.8 kB / 0.9101 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.983e-05/0.2825, allocations: 39.5 kB / 0.9102 GB, free: 54.01 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000646/0.2832, allocations: 427.6 kB / 0.9106 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.2832, allocations: 11.98 kB / 0.9106 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2832, allocations: 0 / 0.9106 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.2832, allocations: 0 / 0.9106 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.2845, allocations: 1.138 MB / 0.9117 GB, free: 52.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2845, allocations: 0 / 0.9117 GB, free: 52.37 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.2846, allocations: 39.84 kB / 0.9117 GB, free: 52.33 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2847, allocations: 3.938 kB / 0.9117 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.2847, allocations: 16 kB / 0.9117 GB, free: 52.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2847, allocations: 4 kB / 0.9117 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2847, allocations: 0 / 0.9117 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.2853, allocations: 0.4919 MB / 0.9122 GB, free: 51.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.2853, allocations: 116.6 kB / 0.9123 GB, free: 51.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.2854, allocations: 16 kB / 0.9123 GB, free: 51.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.2856, allocations: 31.98 kB / 0.9124 GB, free: 51.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.2857, allocations: 64.34 kB / 0.9124 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.2857, allocations: 16 kB / 0.9125 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.72e-05/0.2858, allocations: 136.5 kB / 0.9126 GB, free: 51.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2858, allocations: 0 / 0.9126 GB, free: 51.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003929/0.2862, allocations: 111.5 kB / 0.9127 GB, free: 51.3 MB / 0.6042 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 (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.0002098/0.2865, allocations: 147.1 kB / 0.9128 GB, free: 51.14 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006733/0.2871, allocations: 438.2 kB / 0.9133 GB, free: 50.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2871, allocations: 4.25 kB / 0.9133 GB, free: 50.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002837/0.2874, allocations: 214.4 kB / 0.9135 GB, free: 50.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.2878, allocations: 47.91 kB / 0.9135 GB, free: 50.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.2891, allocations: 0.9043 MB / 0.9144 GB, free: 49.52 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.2893, allocations: 0.8155 MB / 0.9152 GB, free: 48.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.2895, allocations: 47.41 kB / 0.9152 GB, free: 48.63 MB / 0.6042 GB Notification: Performance of SimCode: time 1.723e-06/0.2895, allocations: 0 / 0.9152 GB, free: 48.63 MB / 0.6042 GB Notification: Performance of Templates: time 0.008355/0.2978, allocations: 5.244 MB / 0.9204 GB, free: 43.43 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)