Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.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.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat.terminal.i.1.|loa.i.1.|bat.SOC|sou.S.1.|bat.P|loa.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat.terminal.i.1.|loa.i.1.|bat.SOC|sou.S.1.|bat.P|loa.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 114 kB / 16.42 MB, free: 6.402 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.001305/0.001305, allocations: 183.9 kB / 17.35 MB, free: 5.719 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.14 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.603/2.603, allocations: 437 MB / 0.7112 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 60.12 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.051/1.052, allocations: 151.6 MB / 1.167 GB, free: 3.902 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.009272/1.062, allocations: 4.229 MB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.004243/1.066, allocations: 1.94 MB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006764/1.067, allocations: 15.94 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001613/1.068, allocations: 395.1 kB / 1.174 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0009714/1.069, allocations: 246.5 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001361/1.071, allocations: 436.8 kB / 1.174 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001491/1.072, allocations: 0.9518 MB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002182/1.074, allocations: 1.026 MB / 1.176 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009328/1.075, allocations: 354.8 kB / 1.177 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000979/1.076, allocations: 394.3 kB / 1.177 GB, free: 9.906 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000308/1.076, allocations: 76 kB / 1.177 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006664/1.077, allocations: 211.7 kB / 1.177 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003825/1.078, allocations: 223.3 kB / 1.177 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006698/1.078, allocations: 370.1 kB / 1.178 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001694/1.08, allocations: 0.94 MB / 1.179 GB, free: 8.102 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/1.08, allocations: 7.938 kB / 1.179 GB, free: 8.094 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.884e-06/1.08, allocations: 4 kB / 1.179 GB, free: 8.09 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.753e-05/1.08, allocations: 0 / 1.179 GB, free: 8.09 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.00287/1.083, allocations: 0.9732 MB / 1.18 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/1.083, allocations: 11.97 kB / 1.18 GB, free: 7.055 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007161/1.084, allocations: 123.9 kB / 1.18 GB, free: 6.934 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008928/1.085, allocations: 444.8 kB / 1.18 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.775e-05/1.085, allocations: 62.38 kB / 1.18 GB, free: 6.398 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/1.085, allocations: 84.36 kB / 1.18 GB, free: 6.316 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/1.086, allocations: 0.8888 MB / 1.181 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/1.086, allocations: 0 / 1.181 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.33e-05/1.086, allocations: 35.98 kB / 1.181 GB, free: 5.324 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.488e-05/1.087, allocations: 49.97 kB / 1.181 GB, free: 5.277 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/1.088, allocations: 0.562 MB / 1.182 GB, free: 4.715 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004283/1.092, allocations: 3.708 MB / 1.186 GB, free: 0.793 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006493/1.093, allocations: 398.8 kB / 1.186 GB, free: 360 kB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/1.093, allocations: 227.7 kB / 1.186 GB, free: 120 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/1.093, allocations: 20.28 kB / 1.186 GB, free: 100 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004845/1.094, allocations: 293 kB / 1.186 GB, free: 15.78 MB / 0.92 GB Notification: Performance of pre-optimization done (n=51): time 3.987e-06/1.094, allocations: 0 / 1.186 GB, free: 15.78 MB / 0.92 GB Notification: Performance of matching and sorting (n=51): time 0.0009325/1.095, allocations: 0.4884 MB / 1.187 GB, free: 15.29 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.959e-05/1.095, allocations: 196.5 kB / 1.187 GB, free: 15.05 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004251/1.095, allocations: 425.2 kB / 1.187 GB, free: 14.63 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.572e-05/1.095, allocations: 53.69 kB / 1.188 GB, free: 14.57 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000235/1.095, allocations: 331.5 kB / 1.188 GB, free: 14.24 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/1.096, allocations: 138.2 kB / 1.188 GB, free: 14.11 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/1.096, allocations: 174.5 kB / 1.188 GB, free: 13.93 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.096, allocations: 358.8 kB / 1.189 GB, free: 13.57 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/1.096, allocations: 168.8 kB / 1.189 GB, free: 13.4 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/1.097, allocations: 408.4 kB / 1.189 GB, free: 12.9 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006499/1.097, allocations: 0.5157 MB / 1.19 GB, free: 12.29 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/1.097, allocations: 0 / 1.19 GB, free: 12.29 MB / 0.92 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009236/1.098, allocations: 0.6159 MB / 1.19 GB, free: 11.67 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/1.098, allocations: 11.94 kB / 1.19 GB, free: 11.66 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.098, allocations: 8 kB / 1.19 GB, free: 11.65 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/1.098, allocations: 8 kB / 1.19 GB, free: 11.64 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003443/1.099, allocations: 107.7 kB / 1.19 GB, free: 11.54 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/1.099, allocations: 12 kB / 1.19 GB, free: 11.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003379/1.099, allocations: 83.2 kB / 1.19 GB, free: 11.44 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/1.099, allocations: 31.98 kB / 1.19 GB, free: 11.41 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004732/1.1, allocations: 326 kB / 1.191 GB, free: 11.09 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004398/1.1, allocations: 416.4 kB / 1.191 GB, free: 10.57 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006176/1.101, allocations: 0.5184 MB / 1.192 GB, free: 9.953 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.252e-06/1.101, allocations: 4 kB / 1.192 GB, free: 9.949 MB / 0.92 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0009162/1.102, allocations: 0.6166 MB / 1.192 GB, free: 9.324 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/1.102, allocations: 8 kB / 1.192 GB, free: 9.316 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/1.102, allocations: 8 kB / 1.192 GB, free: 9.309 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/1.102, allocations: 15.94 kB / 1.192 GB, free: 9.293 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/1.102, allocations: 107.8 kB / 1.192 GB, free: 9.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/1.102, allocations: 12 kB / 1.192 GB, free: 9.176 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/1.102, allocations: 71.39 kB / 1.192 GB, free: 9.105 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/1.102, allocations: 35.98 kB / 1.192 GB, free: 9.07 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.activeSteps,toOff.enableFire,toOff.localCondition,discharge.active,discharge.oldActive,$PRE.discharge.oldActive,discharge.newActive,$PRE.discharge.newActive,discharge.localActive,$PRE.discharge.localActive,toDischarge.enableFire,toDischarge.localCondition,hold.oldActive,$PRE.hold.oldActive,hold.newActive,$PRE.hold.newActive,hold.localActive,$PRE.hold.localActive,hold.active,toHold.enableFire,toHold.localCondition,charge.active,charge.oldActive,$PRE.charge.oldActive,charge.newActive,$PRE.charge.newActive,charge.localActive,$PRE.charge.localActive,toOn.enableFire,toOn.localCondition,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition1,toOn.t_start,$PRE.toOn.t_start,toHold.t_start,$PRE.toHold.t_start,toDischarge.t_start,$PRE.toDischarge.t_start,toOff.t_start,$PRE.toOff.t_start,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0002274/1.103, allocations: 253.4 kB / 1.193 GB, free: 8.816 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.184e-05/1.103, allocations: 51.38 kB / 1.193 GB, free: 8.766 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007002/1.103, allocations: 389.2 kB / 1.193 GB, free: 8.383 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/1.103, allocations: 0 / 1.193 GB, free: 8.383 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/1.103, allocations: 7.938 kB / 1.193 GB, free: 8.375 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/1.104, allocations: 164.3 kB / 1.193 GB, free: 8.195 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.143e-05/1.104, allocations: 16 kB / 1.193 GB, free: 8.18 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/1.104, allocations: 15.98 kB / 1.193 GB, free: 8.164 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/1.104, allocations: 52.27 kB / 1.193 GB, free: 8.113 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001013/1.105, allocations: 0.8593 MB / 1.194 GB, free: 7.238 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001086/1.106, allocations: 1.105 MB / 1.195 GB, free: 6.121 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002697/1.106, allocations: 175.4 kB / 1.195 GB, free: 5.949 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002586/1.107, allocations: 263.1 kB / 1.196 GB, free: 5.691 MB / 0.92 GB Notification: Performance of Backend: time 4.3e-07/1.107, allocations: 0 / 1.196 GB, free: 5.691 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002013/1.109, allocations: 0.7967 MB / 1.197 GB, free: 4.887 MB / 0.92 GB Notification: Performance of SimCode: time 0.002147/1.111, allocations: 1.405 MB / 1.198 GB, free: 3.441 MB / 0.92 GB Notification: Performance of Templates: time 0.01722/1.128, allocations: 8.37 MB / 1.206 GB, free: 11.12 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Storage_Examples_Battery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches