Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 104.3 kB / 19.72 MB, free: 2.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 213.7 kB / 23 MB, free: 4.973 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.245/1.245, allocations: 230.6 MB / 256.8 MB, free: 7.836 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.71/2.71, allocations: 0.49 GB / 0.7958 GB, free: 35.38 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bat.terminal.i.1.|loa.i.1.|bat.SOC|sou.S.1.|bat.P|loa.S.1.",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bat.terminal.i.1.|loa.i.1.|bat.SOC|sou.S.1.|bat.P|loa.S.1.",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.33e-05, allocations: 6.219 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004215/0.004228, allocations: 4.096 MB / 1.159 GB, free: 22.64 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002436/0.006664, allocations: 1.938 MB / 1.161 GB, free: 21.36 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001732/0.006837, allocations: 20.56 kB / 1.161 GB, free: 21.35 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0008929/0.00773, allocations: 391.4 kB / 1.161 GB, free: 21.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003824/0.008113, allocations: 238.5 kB / 1.162 GB, free: 20.98 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006467/0.008759, allocations: 461.7 kB / 1.162 GB, free: 20.74 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008896/0.009649, allocations: 1.199 MB / 1.163 GB, free: 20.22 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009537/0.0106, allocations: 0.9357 MB / 1.164 GB, free: 19.76 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004122/0.01101, allocations: 496.9 kB / 1.165 GB, free: 19.54 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.01142, allocations: 408.1 kB / 1.165 GB, free: 19.33 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.01152, allocations: 78.44 kB / 1.165 GB, free: 19.33 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.01176, allocations: 165.7 kB / 1.165 GB, free: 19.29 MB / 0.9044 GB Notification: Performance of combineBinaries: time 0.0006501/0.01241, allocations: 1.39 MB / 1.166 GB, free: 18.33 MB / 0.9044 GB Notification: Performance of replaceArrayConstructors: time 0.0002872/0.0127, allocations: 0.8521 MB / 1.167 GB, free: 17.74 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 8.449e-05/0.01278, allocations: 52.56 kB / 1.167 GB, free: 17.74 MB / 0.9044 GB Notification: Performance of FrontEnd: time 9.157e-05/0.01287, allocations: 80.03 kB / 1.167 GB, free: 17.7 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 (178) * Number of variables: 191 (172) Notification: Performance of [SIM] Bindings: time 0.002212/0.01509, allocations: 3.186 MB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of [SIM] FunctionAlias: time 0.000374/0.01546, allocations: 492.4 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of [SIM] Early Inline: time 0.001689/0.01715, allocations: 2.29 MB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 1: time 0.0005144/0.01766, allocations: 419.6 kB / 1.174 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of [SIM] Alias: time 0.003163/0.02083, allocations: 3.188 MB / 1.177 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 2: time 0.000326/0.02115, allocations: 296.1 kB / 1.177 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of [SIM] Remove Stream: time 0.0001549/0.02131, allocations: 171.6 kB / 1.177 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of [SIM] Detect States: time 0.0004691/0.02178, allocations: 0.509 MB / 1.178 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of [SIM] Events: time 0.0001793/0.02196, allocations: 156.5 kB / 1.178 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of [SIM] Partitioning: time 0.0005742/0.02253, allocations: 0.5781 MB / 1.178 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of [SIM] Causalize: time 0.00184/0.02437, allocations: 1.685 MB / 1.18 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0008436/0.02521, allocations: 1.197 MB / 1.181 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of [INI] Simplify: time 0.0009153/0.02613, allocations: 0.7622 MB / 1.182 GB, free: 9.109 MB / 0.9044 GB Notification: Performance of [INI] Inline: time 0.0014/0.02753, allocations: 1.942 MB / 1.184 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of [INI] Partitioning: time 8.663e-05/0.02762, allocations: 55.48 kB / 1.184 GB, free: 7.957 MB / 0.9044 GB Notification: Performance of [INI] Cleanup: time 0.0002864/0.0279, allocations: 420.5 kB / 1.184 GB, free: 7.688 MB / 0.9044 GB Notification: Performance of [INI] Causalize: time 0.00888/0.03678, allocations: 7.848 MB / 1.192 GB, free: 5.668 MB / 0.9044 GB Notification: Performance of [INI] Tearing: time 6.971e-05/0.03685, allocations: 159 kB / 1.192 GB, free: 5.551 MB / 0.9044 GB Notification: Performance of [SIM] Initialization: time 8.62e-07/0.03685, allocations: 0 / 1.192 GB, free: 5.551 MB / 0.9044 GB Notification: Performance of [SIM] Remove Dummies: time 1.145e-05/0.03686, allocations: 2.375 kB / 1.192 GB, free: 5.551 MB / 0.9044 GB Notification: Performance of [SIM] Tearing: time 1.901e-05/0.03688, allocations: 54.03 kB / 1.192 GB, free: 5.512 MB / 0.9044 GB Notification: Performance of [SIM] Categorize: time 1.237e-05/0.0369, allocations: 4.156 kB / 1.192 GB, free: 5.512 MB / 0.9044 GB Notification: Performance of [SIM] Solve: time 0.001174/0.03807, allocations: 0.884 MB / 1.193 GB, free: 5.145 MB / 0.9044 GB Notification: Performance of [SIM] Jacobian: time 0.0006834/0.03875, allocations: 0.7418 MB / 1.194 GB, free: 4.711 MB / 0.9044 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 0 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 1 (1) {greaterEqualThreshold.u} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 76 (76) {bat.cha.underCharged, bat.cha.overCharged, off.active, off.localActive, off.inPort.occupied, off.inPort.set, off.outPort.available, off.outPort.reset, off.newActive, toOn.localCondition, toOn.enableFire, toOn.fire, toOn.inPort.available, toOn.outPort.occupied, charge.localActive, charge.inPort.occupied, charge.inPort.set, charge.outPort.available, charge.outPort.reset, charge.newActive, toHold.localCondition, toHold.enableFire, toHold.fire, toHold.inPort.available, toHold.outPort.occupied, hold.active, hold.localActive, hold.inPort.occupied, hold.inPort.set, hold.outPort.available, hold.outPort.reset, hold.newActive, toDischarge.localCondition, toDischarge.enableFire, toDischarge.fire, toDischarge.inPort.available, toDischarge.outPort.occupied, discharge.localActive, discharge.inPort.occupied, discharge.inPort.set, discharge.outPort.available, discharge.outPort.reset, discharge.newActive, toOff.localCondition, toOff.enableFire, toOff.fire, toOff.inPort.available, toOff.outPort.occupied, stateGraphRoot.activeSteps, $FUN_6, $FUN_7, $FUN_8, $FUN_9, $FUN_10, $FUN_11, $FUN_12, $FUN_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 108 (scalar:105, array:3, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (resizable: 3, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 148 (scalar:145, array:3, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (resizable: 3, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 148 (scalar:145, array:3, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (resizable: 3, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 7.798e-05/0.03883, allocations: 110.3 kB / 1.194 GB, free: 4.629 MB / 0.9044 GB Notification: Performance of SimCode: time 0.002685/0.04152, allocations: 2.699 MB / 1.197 GB, free: 3.32 MB / 0.9044 GB Notification: Performance of Templates: time 0.01061/0.05213, allocations: 6.081 MB / 1.202 GB, free: 2.664 MB / 0.9044 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Storage_Examples_Battery.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Storage.Examples.Battery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.2346853679046035]