Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001465/0.001466, allocations: 113.9 kB / 16.42 MB, free: 6.492 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.001668/0.001668, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.313/2.313, allocations: 390.2 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 67.89 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9495/0.951, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.006182/0.9572, allocations: 4.208 MB / 1.093 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003572/0.9608, allocations: 1.951 MB / 1.095 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003684/0.9612, allocations: 15.53 kB / 1.095 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.9624, allocations: 398.1 kB / 1.095 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005876/0.963, allocations: 236.7 kB / 1.095 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.9642, allocations: 443.7 kB / 1.096 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001214/0.9654, allocations: 0.9513 MB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00159/0.967, allocations: 1.021 MB / 1.098 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005331/0.9675, allocations: 353.6 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006271/0.9682, allocations: 389.7 kB / 1.098 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.9683, allocations: 88.59 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004935/0.9688, allocations: 205 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.9691, allocations: 222.5 kB / 1.099 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004062/0.9695, allocations: 375.3 kB / 1.099 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.9709, allocations: 0.9494 MB / 1.1 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.9709, allocations: 0.6562 kB / 1.1 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9709, allocations: 3.938 kB / 1.1 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.563e-05/0.9709, allocations: 0 / 1.1 GB, free: 14.57 MB / 0.8731 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.001831/0.9728, allocations: 0.9781 MB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.9728, allocations: 9.031 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005587/0.9734, allocations: 118.5 kB / 1.101 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006796/0.9741, allocations: 449.2 kB / 1.102 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.732e-05/0.9741, allocations: 61.67 kB / 1.102 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.9743, allocations: 82.98 kB / 1.102 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.9758, allocations: 0.8842 MB / 1.103 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.9758, allocations: 1.062 kB / 1.103 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.583e-05/0.9759, allocations: 29.95 kB / 1.103 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.6e-05/0.976, allocations: 46.73 kB / 1.103 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.9773, allocations: 0.5735 MB / 1.103 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.9816, allocations: 3.709 MB / 1.107 GB, free: 9.762 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.9823, allocations: 385 kB / 1.107 GB, free: 9.531 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004264/0.9828, allocations: 236.8 kB / 1.107 GB, free: 9.418 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.9828, allocations: 18.27 kB / 1.107 GB, free: 9.406 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.9833, allocations: 290.6 kB / 1.108 GB, free: 9.234 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=51): time 2.615e-06/0.9834, allocations: 0 / 1.108 GB, free: 9.234 MB / 0.8731 GB Notification: Performance of matching and sorting (n=51): time 0.001012/0.9844, allocations: 499.7 kB / 1.108 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.9845, allocations: 197.8 kB / 1.108 GB, free: 8.809 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.985, allocations: 414.3 kB / 1.109 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.212e-05/0.9851, allocations: 53.41 kB / 1.109 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.9853, allocations: 329.9 kB / 1.109 GB, free: 8.281 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.9855, allocations: 144.3 kB / 1.109 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/0.9857, allocations: 177 kB / 1.109 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.9859, allocations: 358.8 kB / 1.11 GB, free: 7.754 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.9862, allocations: 166.8 kB / 1.11 GB, free: 7.691 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.9867, allocations: 411.6 kB / 1.11 GB, free: 7.336 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007302/0.9875, allocations: 0.5147 MB / 1.111 GB, free: 6.914 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.9875, allocations: 2.188 kB / 1.111 GB, free: 6.914 MB / 0.8731 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009845/0.9885, allocations: 0.6073 MB / 1.111 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.9885, allocations: 18.09 kB / 1.111 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.9885, allocations: 7.312 kB / 1.111 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.9885, allocations: 11.84 kB / 1.111 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003641/0.9889, allocations: 101 kB / 1.112 GB, free: 6.637 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.481e-05/0.9889, allocations: 21.55 kB / 1.112 GB, free: 6.629 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.9893, allocations: 81.17 kB / 1.112 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.948e-05/0.9894, allocations: 35.83 kB / 1.112 GB, free: 6.566 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005103/0.9899, allocations: 331 kB / 1.112 GB, free: 6.387 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005046/0.9904, allocations: 411.3 kB / 1.112 GB, free: 6.023 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006875/0.9911, allocations: 0.5272 MB / 1.113 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.797e-06/0.9911, allocations: 2.562 kB / 1.113 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001276/0.9924, allocations: 0.6065 MB / 1.114 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.9924, allocations: 8 kB / 1.114 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.9925, allocations: 8 kB / 1.114 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.9925, allocations: 15.66 kB / 1.114 GB, free: 5.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.9928, allocations: 110.1 kB / 1.114 GB, free: 5.297 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-05/0.9929, allocations: 17.03 kB / 1.114 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003695/0.9932, allocations: 62.5 kB / 1.114 GB, free: 5.254 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.959e-05/0.9933, allocations: 36.56 kB / 1.114 GB, free: 5.246 MB / 0.8731 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.0003277/0.9936, allocations: 248.3 kB / 1.114 GB, free: 5.023 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.9938, allocations: 51.95 kB / 1.114 GB, free: 4.996 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008055/0.9946, allocations: 394.8 kB / 1.114 GB, free: 4.82 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.9946, allocations: 5.172 kB / 1.114 GB, free: 4.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.9946, allocations: 1.438 kB / 1.114 GB, free: 4.82 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.9948, allocations: 158.5 kB / 1.115 GB, free: 4.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.792e-05/0.9949, allocations: 15.16 kB / 1.115 GB, free: 4.672 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.9951, allocations: 16.75 kB / 1.115 GB, free: 4.664 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.9952, allocations: 52.19 kB / 1.115 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001037/0.9963, allocations: 0.8616 MB / 1.116 GB, free: 4.027 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001148/0.9974, allocations: 1.102 MB / 1.117 GB, free: 3.234 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002898/0.9977, allocations: 179.1 kB / 1.117 GB, free: 3.172 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002967/0.998, allocations: 259.2 kB / 1.117 GB, free: 3.035 MB / 0.8731 GB Notification: Performance of Backend: time 4.7e-07/0.998, allocations: 4 kB / 1.117 GB, free: 3.031 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00227/1, allocations: 0.8011 MB / 1.118 GB, free: 2.727 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002163/1.002, allocations: 1.418 MB / 1.119 GB, free: 1.742 MB / 0.8731 GB Notification: Performance of Templates: time 0.02277/1.025, allocations: 8.364 MB / 1.127 GB, free: 1.102 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Storage_Examples_Battery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches