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.001475/0.001475, allocations: 95.92 kB / 19.7 MB, free: 2.129 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.001482/0.001482, allocations: 210.5 kB / 23 MB, free: 4.934 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.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 3.39/3.39, allocations: 0.49 GB / 0.7959 GB, free: 35.49 MB / 0.6231 GB " [Timeout remaining time 176] 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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 72.89 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4437/0.4458, allocations: 176.1 MB / 1.327 GB, free: 1.023 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.007368/0.4531, allocations: 4.107 MB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.004292/0.4574, allocations: 1.932 MB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004231/0.4578, allocations: 19.88 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.4592, allocations: 397.9 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000841/0.46, allocations: 242.5 kB / 1.334 GB, free: 10.31 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.4612, allocations: 448.3 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001377/0.4626, allocations: 0.9714 MB / 1.335 GB, free: 8.895 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.464, allocations: 0.9009 MB / 1.336 GB, free: 7.977 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005571/0.4646, allocations: 366.8 kB / 1.336 GB, free: 7.617 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007261/0.4653, allocations: 418.2 kB / 1.337 GB, free: 7.207 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.4654, allocations: 76 kB / 1.337 GB, free: 7.133 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005003/0.4659, allocations: 191.7 kB / 1.337 GB, free: 6.945 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.4662, allocations: 235.3 kB / 1.337 GB, free: 6.715 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000372/0.4666, allocations: 298.6 kB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.4679, allocations: 0.9687 MB / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4679, allocations: 0 / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4679, allocations: 0 / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.4679, allocations: 4 kB / 1.338 GB, free: 5.445 MB / 1.029 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.00201/0.4699, allocations: 0.9202 MB / 1.339 GB, free: 4.496 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.4699, allocations: 15.97 kB / 1.339 GB, free: 4.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009229/0.4709, allocations: 140.4 kB / 1.339 GB, free: 4.344 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007444/0.4716, allocations: 390.7 kB / 1.34 GB, free: 3.938 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.652e-05/0.4717, allocations: 66.36 kB / 1.34 GB, free: 3.875 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.4719, allocations: 76.38 kB / 1.34 GB, free: 3.801 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.4735, allocations: 0.9364 MB / 1.341 GB, free: 2.785 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.4736, allocations: 0 / 1.341 GB, free: 2.785 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.806e-05/0.4736, allocations: 32 kB / 1.341 GB, free: 2.754 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.118e-05/0.4737, allocations: 45.98 kB / 1.341 GB, free: 2.711 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.4747, allocations: 0.5697 MB / 1.341 GB, free: 2.137 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004357/0.4791, allocations: 3.014 MB / 1.344 GB, free: 15.02 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007254/0.4798, allocations: 359.4 kB / 1.345 GB, free: 14.61 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/0.4803, allocations: 206.9 kB / 1.345 GB, free: 14.4 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.676e-05/0.4803, allocations: 8.375 kB / 1.345 GB, free: 14.39 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005167/0.4808, allocations: 285 kB / 1.345 GB, free: 14.08 MB / 1.045 GB Notification: Performance of pre-optimization done (n=51): time 2.675e-06/0.4808, allocations: 0 / 1.345 GB, free: 14.08 MB / 1.045 GB Notification: Performance of matching and sorting (n=51): time 0.0009918/0.4818, allocations: 497 kB / 1.346 GB, free: 13.59 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.4819, allocations: 200 kB / 1.346 GB, free: 13.35 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004883/0.4824, allocations: 352.2 kB / 1.346 GB, free: 12.99 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 8.586e-05/0.4825, allocations: 53.69 kB / 1.346 GB, free: 12.93 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.4828, allocations: 348.5 kB / 1.347 GB, free: 12.58 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.483, allocations: 150.8 kB / 1.347 GB, free: 12.43 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002554/0.4832, allocations: 170.6 kB / 1.347 GB, free: 12.26 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002092/0.4835, allocations: 354.8 kB / 1.347 GB, free: 11.91 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.4838, allocations: 168.8 kB / 1.347 GB, free: 11.74 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.4844, allocations: 451.8 kB / 1.348 GB, free: 11.18 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008217/0.4852, allocations: 0.5264 MB / 1.348 GB, free: 10.56 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.4852, allocations: 4 kB / 1.348 GB, free: 10.55 MB / 1.045 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001109/0.4863, allocations: 0.606 MB / 1.349 GB, free: 9.938 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.4863, allocations: 8 kB / 1.349 GB, free: 9.93 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.4864, allocations: 8.906 kB / 1.349 GB, free: 9.922 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.931e-05/0.4864, allocations: 11.94 kB / 1.349 GB, free: 9.91 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.4868, allocations: 107.8 kB / 1.349 GB, free: 9.805 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.567e-05/0.4868, allocations: 19.92 kB / 1.349 GB, free: 9.785 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.4872, allocations: 67.52 kB / 1.349 GB, free: 9.719 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.163e-05/0.4872, allocations: 32 kB / 1.349 GB, free: 9.688 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005386/0.4878, allocations: 326 kB / 1.349 GB, free: 9.367 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000542/0.4883, allocations: 455.8 kB / 1.35 GB, free: 8.809 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007283/0.489, allocations: 0.5186 MB / 1.35 GB, free: 8.195 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.885e-06/0.489, allocations: 3.938 kB / 1.35 GB, free: 8.191 MB / 1.045 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0009952/0.49, allocations: 0.5946 MB / 1.351 GB, free: 7.586 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.49, allocations: 11.94 kB / 1.351 GB, free: 7.574 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.4901, allocations: 8 kB / 1.351 GB, free: 7.566 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.4901, allocations: 8.75 kB / 1.351 GB, free: 7.559 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.4904, allocations: 111.7 kB / 1.351 GB, free: 7.449 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.4904, allocations: 19.94 kB / 1.351 GB, free: 7.43 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.4908, allocations: 63.61 kB / 1.351 GB, free: 7.367 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.4908, allocations: 32 kB / 1.351 GB, free: 7.336 MB / 1.045 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.0002488/0.4911, allocations: 249.8 kB / 1.351 GB, free: 7.082 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.083e-05/0.4912, allocations: 47.7 kB / 1.352 GB, free: 7.035 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.4913, allocations: 56.23 kB / 1.352 GB, free: 6.977 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.4913, allocations: 0 / 1.352 GB, free: 6.977 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.4913, allocations: 11.98 kB / 1.352 GB, free: 6.965 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.4915, allocations: 63.61 kB / 1.352 GB, free: 6.902 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/0.4916, allocations: 16 kB / 1.352 GB, free: 6.887 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.4917, allocations: 15.98 kB / 1.352 GB, free: 6.871 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.4918, allocations: 55.61 kB / 1.352 GB, free: 6.816 MB / 1.045 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001029/0.4929, allocations: 0.8302 MB / 1.353 GB, free: 5.977 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001209/0.4941, allocations: 1.084 MB / 1.354 GB, free: 4.871 MB / 1.045 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002817/0.4944, allocations: 147.9 kB / 1.354 GB, free: 4.727 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002265/0.4946, allocations: 211 kB / 1.354 GB, free: 4.523 MB / 1.045 GB Notification: Performance of Backend: time 5.01e-07/0.4946, allocations: 0 / 1.354 GB, free: 4.523 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002146/0.4967, allocations: 0.729 MB / 1.355 GB, free: 3.797 MB / 1.045 GB Notification: Performance of SimCode: time 0.002131/0.4989, allocations: 1.414 MB / 1.356 GB, free: 2.336 MB / 1.045 GB Notification: Performance of Templates: time 0.0178/0.5167, allocations: 9.037 MB / 1.365 GB, free: 9.457 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 9.720020864006074]