Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001347, allocations: 108.7 kB / 16.41 MB, free: 6.457 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.00153/0.001531, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.434/2.434, allocations: 437.1 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 68.11 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8058/0.8076, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003275/0.8109, allocations: 2.28 MB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.8124, allocations: 0.9351 MB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.8126, allocations: 11.94 kB / 1.17 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.8128, allocations: 63.33 kB / 1.171 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.813, allocations: 51.47 kB / 1.171 GB, free: 500 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.8135, allocations: 283.5 kB / 1.171 GB, free: 216 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006319/0.8142, allocations: 0.6286 MB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005244/0.8147, allocations: 476.5 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002193/0.8149, allocations: 223.3 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.8152, allocations: 227 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 7.647e-05/0.8152, allocations: 64 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.8154, allocations: 83.98 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.8155, allocations: 147.6 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.8157, allocations: 254.8 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006186/0.8164, allocations: 0.7513 MB / 1.174 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.8164, allocations: 0 / 1.174 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.313e-06/0.8164, allocations: 3.938 kB / 1.174 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.8164, allocations: 4 kB / 1.174 GB, free: 13.37 MB / 0.9044 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.001055/0.8175, allocations: 0.731 MB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.8175, allocations: 8.922 kB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.8176, allocations: 52.31 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.818, allocations: 348.2 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.951e-05/0.8181, allocations: 53.67 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.567e-05/0.8182, allocations: 60.36 kB / 1.175 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008963/0.8191, allocations: 0.5777 MB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.8191, allocations: 0 / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.622e-05/0.8191, allocations: 31.92 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.333e-05/0.8192, allocations: 21 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007164/0.8199, allocations: 419.7 kB / 1.176 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.822, allocations: 1.918 MB / 1.178 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000581/0.8226, allocations: 400.7 kB / 1.178 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002941/0.8229, allocations: 198.5 kB / 1.178 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.622e-05/0.823, allocations: 12 kB / 1.178 GB, free: 8.34 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004113/0.8234, allocations: 273 kB / 1.179 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=48): time 1.944e-06/0.8234, allocations: 0 / 1.179 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48): time 0.0009186/0.8243, allocations: 0.4953 MB / 1.179 GB, free: 7.551 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.8244, allocations: 110.8 kB / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.8246, allocations: 235.7 kB / 1.179 GB, free: 7.18 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.32e-05/0.8246, allocations: 49.7 kB / 1.179 GB, free: 7.125 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.8248, allocations: 220.7 kB / 1.18 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.293e-05/0.8249, allocations: 114.5 kB / 1.18 GB, free: 6.793 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.8251, allocations: 142.3 kB / 1.18 GB, free: 6.648 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.8252, allocations: 342.8 kB / 1.18 GB, free: 6.305 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002975/0.8255, allocations: 169.3 kB / 1.18 GB, free: 6.141 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.8259, allocations: 296.7 kB / 1.181 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005664/0.8265, allocations: 410.4 kB / 1.181 GB, free: 5.355 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.8265, allocations: 3.938 kB / 1.181 GB, free: 5.352 MB / 0.9044 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008017/0.8273, allocations: 0.5143 MB / 1.182 GB, free: 4.832 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.8273, allocations: 12.06 kB / 1.182 GB, free: 4.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.8273, allocations: 4 kB / 1.182 GB, free: 4.816 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.8273, allocations: 8 kB / 1.182 GB, free: 4.809 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.8276, allocations: 63.83 kB / 1.182 GB, free: 4.746 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.8276, allocations: 8 kB / 1.182 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.8278, allocations: 55.52 kB / 1.182 GB, free: 4.684 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.786e-05/0.8279, allocations: 27.98 kB / 1.182 GB, free: 4.656 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($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.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,con.t4.enableFire,con.t4.localCondition,con.t3.enableFire,con.t3.localCondition,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.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,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 (76): * Single equations (assignments): 76 * 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.0002364/0.8281, allocations: 238.8 kB / 1.182 GB, free: 4.414 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.726e-05/0.8282, allocations: 27.7 kB / 1.182 GB, free: 4.387 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007453/0.829, allocations: 423.6 kB / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.829, allocations: 3.984 kB / 1.182 GB, free: 3.961 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.829, allocations: 0 / 1.182 GB, free: 3.961 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.829, allocations: 120.5 kB / 1.182 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.8291, allocations: 15.98 kB / 1.182 GB, free: 3.809 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.8293, allocations: 23.98 kB / 1.183 GB, free: 3.785 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.8294, allocations: 64.3 kB / 1.183 GB, free: 3.723 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008876/0.8303, allocations: 0.6661 MB / 1.183 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007343/0.8311, allocations: 0.7133 MB / 1.184 GB, free: 2.316 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003025/0.8314, allocations: 211.3 kB / 1.184 GB, free: 2.113 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.842e-05/0.8315, allocations: 135.1 kB / 1.184 GB, free: 1.98 MB / 0.9044 GB Notification: Performance of Backend: time 6.31e-07/0.8315, allocations: 7.969 kB / 1.184 GB, free: 1.973 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009695/0.8325, allocations: 386.5 kB / 1.185 GB, free: 1.594 MB / 0.9044 GB Notification: Performance of SimCode: time 0.001131/0.8336, allocations: 1.035 MB / 1.186 GB, free: 0.5078 MB / 0.9044 GB Notification: Performance of Templates: time 0.008905/0.8425, allocations: 4.822 MB / 1.19 GB, free: 11.7 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches