Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001143, allocations: 108 kB / 16.41 MB, free: 6.484 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.001187/0.001187, allocations: 192.2 kB / 17.35 MB, free: 5.727 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.387/1.387, 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 11.0.0-master/package.mo): time 2.617/2.617, allocations: 461.7 MB / 0.7352 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 68.11 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8911/0.8924, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.006746/0.8992, allocations: 4.21 MB / 1.212 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003685/0.9029, allocations: 1.963 MB / 1.214 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005969/0.9035, allocations: 15.94 kB / 1.214 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.9049, allocations: 382 kB / 1.215 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0008535/0.9058, allocations: 246.5 kB / 1.215 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.9075, allocations: 435 kB / 1.215 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001794/0.9093, allocations: 0.944 MB / 1.216 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002092/0.9114, allocations: 1.029 MB / 1.217 GB, free: 4.426 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008286/0.9123, allocations: 350.8 kB / 1.218 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008839/0.9131, allocations: 398.3 kB / 1.218 GB, free: 3.691 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.9134, allocations: 76 kB / 1.218 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005313/0.9139, allocations: 207.7 kB / 1.218 GB, free: 3.414 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002869/0.9142, allocations: 231.3 kB / 1.218 GB, free: 3.188 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0004865/0.9147, allocations: 366.1 kB / 1.219 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.9159, allocations: 0.94 MB / 1.22 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.9159, allocations: 0 / 1.22 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9159, allocations: 0 / 1.22 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.285e-05/0.916, allocations: 0 / 1.22 GB, free: 1.887 MB / 0.9356 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.001855/0.9178, allocations: 0.9732 MB / 1.221 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.9179, allocations: 19.95 kB / 1.221 GB, free: 0.8398 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005553/0.9184, allocations: 119.9 kB / 1.221 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006539/0.9191, allocations: 444.9 kB / 1.221 GB, free: 260 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.401e-05/0.9192, allocations: 62.38 kB / 1.221 GB, free: 196 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.9193, allocations: 84.36 kB / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.9207, allocations: 0.8772 MB / 1.222 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.9208, allocations: 3.938 kB / 1.222 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.9208, allocations: 39.98 kB / 1.222 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.255e-05/0.9209, allocations: 53.97 kB / 1.222 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009834/0.9219, allocations: 0.5659 MB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003951/0.9259, allocations: 3.7 MB / 1.226 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00061/0.9265, allocations: 390.8 kB / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003765/0.9269, allocations: 230.8 kB / 1.227 GB, free: 9.922 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.9269, allocations: 16.34 kB / 1.227 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.9274, allocations: 289 kB / 1.227 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=51): time 3.016e-06/0.9274, allocations: 11.88 kB / 1.227 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of matching and sorting (n=51): time 0.000944/0.9283, allocations: 497.6 kB / 1.228 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.943e-05/0.9284, allocations: 187.9 kB / 1.228 GB, free: 8.863 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004363/0.9289, allocations: 421.2 kB / 1.228 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.929, allocations: 50.33 kB / 1.228 GB, free: 8.391 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.9292, allocations: 339.5 kB / 1.229 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.9293, allocations: 142.2 kB / 1.229 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.9295, allocations: 174.5 kB / 1.229 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.9296, allocations: 362.8 kB / 1.229 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.9299, allocations: 164.8 kB / 1.23 GB, free: 7.207 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004058/0.9303, allocations: 408.4 kB / 1.23 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006083/0.9309, allocations: 0.5118 MB / 1.23 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.931, allocations: 0 / 1.23 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008881/0.9319, allocations: 0.6149 MB / 1.231 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.9319, allocations: 12.91 kB / 1.231 GB, free: 5.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.58e-05/0.9319, allocations: 8 kB / 1.231 GB, free: 5.453 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.492e-05/0.932, allocations: 19.98 kB / 1.231 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004268/0.9324, allocations: 99.77 kB / 1.231 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.724e-05/0.9325, allocations: 15.94 kB / 1.231 GB, free: 5.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.9328, allocations: 79.2 kB / 1.231 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-05/0.9329, allocations: 35.98 kB / 1.231 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004701/0.9334, allocations: 322 kB / 1.232 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000454/0.9339, allocations: 416.3 kB / 1.232 GB, free: 4.379 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006976/0.9346, allocations: 0.5145 MB / 1.233 GB, free: 3.766 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.451e-06/0.9346, allocations: 4 kB / 1.233 GB, free: 3.762 MB / 0.9512 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001026/0.9356, allocations: 0.609 MB / 1.233 GB, free: 3.145 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.9356, allocations: 8 kB / 1.233 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.9356, allocations: 16 kB / 1.233 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.9357, allocations: 15.94 kB / 1.233 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003415/0.936, allocations: 103.8 kB / 1.233 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.936, allocations: 15.94 kB / 1.233 GB, free: 2.988 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.9364, allocations: 59.52 kB / 1.233 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/0.9365, allocations: 39.98 kB / 1.233 GB, free: 2.891 MB / 0.9512 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.0002087/0.9367, allocations: 245.3 kB / 1.234 GB, free: 2.645 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.367e-05/0.9368, allocations: 51.38 kB / 1.234 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007357/0.9375, allocations: 401.1 kB / 1.234 GB, free: 2.191 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.9375, allocations: 7.938 kB / 1.234 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.9375, allocations: 0 / 1.234 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.9378, allocations: 164.3 kB / 1.234 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.705e-05/0.9378, allocations: 16 kB / 1.234 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.938, allocations: 11.98 kB / 1.234 GB, free: 1.977 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.9382, allocations: 60.31 kB / 1.234 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001096/0.9393, allocations: 0.8515 MB / 1.235 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001255/0.9405, allocations: 1.101 MB / 1.236 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002992/0.9408, allocations: 187.4 kB / 1.236 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002779/0.9411, allocations: 259.1 kB / 1.237 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of Backend: time 3.51e-07/0.9411, allocations: 0 / 1.237 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002009/0.9432, allocations: 0.7842 MB / 1.237 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of SimCode: time 0.00238/0.9456, allocations: 1.419 MB / 1.239 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of Templates: time 0.01656/0.9621, allocations: 8.244 MB / 1.247 GB, free: 5.059 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Storage_Examples_Battery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches